<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help with this simple script of fit y by x in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684743#M87067</link>
    <description>&lt;P&gt;Going from 9 to 14 was fantastic. With 14 I'm more than happy. Thank you so much&lt;/P&gt;</description>
    <pubDate>Sun, 08 Oct 2023 16:38:48 GMT</pubDate>
    <dc:creator>gallardet</dc:creator>
    <dc:date>2023-10-08T16:38:48Z</dc:date>
    <item>
      <title>Help with this simple script of fit y by x</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684530#M87030</link>
      <description>&lt;P&gt;Hello. I try to study the relationship of a quantitative variable with multiple quantitative variables. I wrote this script but it doesn't work. I show you the script and the error message. Thank you in advance.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Script&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Current Data Table();
numericColNames = dt &amp;lt;&amp;lt; get column names(string, numeric);
For(i = 38, i &amp;lt;= N Items(numericColNames), i++,
	Bivariate(Y(:Name("ERC [%]")), X((__col__)), Fit Line({Report(0), Line Color({212, 73, 88}), Report(0)}))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;STRONG&gt;Error&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Current Data Table();
numericColNames = dt &amp;lt;&amp;lt; get column names(string, numeric);
For(i = 38, i &amp;lt;= N Items(numericColNames), i++,
	Bivariate(Y(:Name("ERC [%]")), X((__col__)), Fit Line({Report(0), Line Color({212, 73, 88}), Report(0)}))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 15:20:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684530#M87030</guid>
      <dc:creator>gallardet</dc:creator>
      <dc:date>2023-10-06T15:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this simple script of fit y by x</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684570#M87036</link>
      <description>&lt;P&gt;I think you didn't remember to add the error message. Also when posting scripts you should use&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1696605661286.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57260i51FB02DF86D826B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1696605661286.png" alt="jthi_0-1696605661286.png" /&gt;&lt;/span&gt; as it makes readability much better (I did edit your message to use this).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 15:21:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684570#M87036</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-06T15:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this simple script of fit y by x</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684573#M87037</link>
      <description>&lt;P&gt;Just looking at your script, it doesn't look like you are using your loop for anything (i isn't being used) besides replicating Bivariate IF you have __col__ defined correctly somewhere. It might be enough if you change&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;X((__col__))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;X(Eval(numericColNames[i])),&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Oct 2023 15:25:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684573#M87037</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-06T15:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this simple script of fit y by x</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684574#M87038</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
numericColNames = dt &amp;lt;&amp;lt; get column names( string, numeric );
For( i = 38, i &amp;lt;= N Items( numericColNames ), i++,
	Bivariate(
		Y( :Name( "ERC [%]" ) ),
		X( (__col__) ),
		Fit Line( {Report( 0 ), Line Color( {212, 73, 88} ), Report( 0 )} )
	);
);

Not Found in access or evaluation of 'Bivariate' , Bad Argument( {__col__, Role requires at least 1 columns.} ), Bivariate(/*###*/Y( :Name( "ERC [%]" ) ),
	X( __col__ ),
	Fit Line( {Report( 0 ), Line Color( {212, 73, 88} ), Report( 0 )} )
)


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Oct 2023 15:27:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684574#M87038</guid>
      <dc:creator>gallardet</dc:creator>
      <dc:date>2023-10-06T15:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this simple script of fit y by x</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684575#M87039</link>
      <description>&lt;P&gt;Sorry.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 15:28:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684575#M87039</guid>
      <dc:creator>gallardet</dc:creator>
      <dc:date>2023-10-06T15:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this simple script of fit y by x</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684577#M87041</link>
      <description>&lt;P&gt;Ok I think the issues is what I did explain in my second response. If you want it to be a bit more obvious you can define __xcol__&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Current Data Table();
numericColNames = dt &amp;lt;&amp;lt; get column names(string, numeric);
For(i = 38, i &amp;lt;= N Items(numericColNames), i++,
	__col__ = numericColNames[i];
	Bivariate(
		Y(:Name("ERC [%]")),
		X(Eval(__col__)),
		Fit Line({Report(0), Line Color({212, 73, 88}), Report(0)})
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also if you are using JMP16+ using For Each is usually better than using just For&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 15:32:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684577#M87041</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-06T15:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this simple script of fit y by x</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684743#M87067</link>
      <description>&lt;P&gt;Going from 9 to 14 was fantastic. With 14 I'm more than happy. Thank you so much&lt;/P&gt;</description>
      <pubDate>Sun, 08 Oct 2023 16:38:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-this-simple-script-of-fit-y-by-x/m-p/684743#M87067</guid>
      <dc:creator>gallardet</dc:creator>
      <dc:date>2023-10-08T16:38:48Z</dc:date>
    </item>
  </channel>
</rss>

