<?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: I am trying to plot bivariate of the new columns created but having issue creating another list. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/I-am-trying-to-plot-bivariate-of-the-new-columns-created-but/m-p/664156#M85253</link>
    <description>&lt;P&gt;Thanks i ended up figuring it out but i would like to create one page of multiple biv plots so i stored them into a list but instead i get multiple pages of one plots. Im not sure where i went wrong&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
//declaring variables
alpha_min = 14;
alpha_max = 18;
inc_val = 0.1;
//create list
alpha_range = {};
For( alpha_val = alpha_min, alpha_val &amp;lt;= alpha_max, alpha_val += inc_val,
	Insert Into( alpha_range, alpha_val )
);

//loop through alpha list and create new mu cols
For( i = 1, i &amp;lt;= N Items( alpha_range ), i++,
	alpha_x = alpha_range[i];
	mu_col_name = mu_col || Char( alpha_x );
	dt &amp;lt;&amp;lt; New Column( mu_col_name, Numeric, Continuous, Formula( alpha_x / (alpha_x + :X) ) );
	bp = dt &amp;lt;&amp;lt; Bivariate( Y( Expr( Column( mu_col_name ) ) ), X( :Temp ) );
);
// use list to
colListY = {alpha_range};
For( j = 1, j &amp;lt;= 10, j++,
	Insert Into( colListY, "mu" || Char( j ) )
);
New Window( "My output",
	H List Box(
		For( j = 1, j &amp;lt;= 10, j++,
			dt &amp;lt;&amp;lt; Bivariate(
				Y( Eval( colListY ) ),
				X( Column( dt, "Temp" ) ),
				Fit Line( {Line Color( {212, 73, 88} )} )
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 31 Jul 2023 18:20:30 GMT</pubDate>
    <dc:creator>ParametricStudy</dc:creator>
    <dc:date>2023-07-31T18:20:30Z</dc:date>
    <item>
      <title>I am trying to plot bivariate of the new columns created but having issue creating another list.</title>
      <link>https://community.jmp.com/t5/Discussions/I-am-trying-to-plot-bivariate-of-the-new-columns-created-but/m-p/664091#M85243</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
//declaring variables
alpha_min = 14;
alpha_max = 18;
inc_val = 0.1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;this is the script, but i want to create bivariate plots of each of them without it showing up as multiple pages and also combine the reports to data table. thanks :)&lt;/img&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//defining mu col names
mu_col = "mu";

//loop through alpha range and create new cols//
For( alpha = alpha_min, alpha &amp;lt;= alpha_max, alpha += inc_val, 
//define col name
	mu_col_name = mu_col || Char( alpha );
//compute mu val into formula
	New Column( mu_col_name,
		Numeric,
		Continuous,
		Formula( alpha / (alpha + :X) )
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 16:29:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-am-trying-to-plot-bivariate-of-the-new-columns-created-but/m-p/664091#M85243</guid>
      <dc:creator>ParametricStudy</dc:creator>
      <dc:date>2023-07-31T16:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to plot bivariate of the new columns created but having issue creating another list.</title>
      <link>https://community.jmp.com/t5/Discussions/I-am-trying-to-plot-bivariate-of-the-new-columns-created-but/m-p/664151#M85252</link>
      <description>&lt;P&gt;See if this helps you out&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//defining mu col names
mu_col = "mu";

//loop through alpha range and create new cols//
For( alpha = alpha_min, alpha &amp;lt;= alpha_max, alpha += inc_val, 
//define col name
	mu_col_name = mu_col || Char( alpha );
//compute mu val into formula
	Eval(
		Substitute(
				Expr(
					New Column( mu_col_name,
						Numeric,
						Continuous,
						Formula( __alpha__ / (__alpha__ + :X) )
					)
				),
			Expr( __alpha__ ), alpha
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Jul 2023 17:26:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-am-trying-to-plot-bivariate-of-the-new-columns-created-but/m-p/664151#M85252</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-07-31T17:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to plot bivariate of the new columns created but having issue creating another list.</title>
      <link>https://community.jmp.com/t5/Discussions/I-am-trying-to-plot-bivariate-of-the-new-columns-created-but/m-p/664156#M85253</link>
      <description>&lt;P&gt;Thanks i ended up figuring it out but i would like to create one page of multiple biv plots so i stored them into a list but instead i get multiple pages of one plots. Im not sure where i went wrong&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
//declaring variables
alpha_min = 14;
alpha_max = 18;
inc_val = 0.1;
//create list
alpha_range = {};
For( alpha_val = alpha_min, alpha_val &amp;lt;= alpha_max, alpha_val += inc_val,
	Insert Into( alpha_range, alpha_val )
);

//loop through alpha list and create new mu cols
For( i = 1, i &amp;lt;= N Items( alpha_range ), i++,
	alpha_x = alpha_range[i];
	mu_col_name = mu_col || Char( alpha_x );
	dt &amp;lt;&amp;lt; New Column( mu_col_name, Numeric, Continuous, Formula( alpha_x / (alpha_x + :X) ) );
	bp = dt &amp;lt;&amp;lt; Bivariate( Y( Expr( Column( mu_col_name ) ) ), X( :Temp ) );
);
// use list to
colListY = {alpha_range};
For( j = 1, j &amp;lt;= 10, j++,
	Insert Into( colListY, "mu" || Char( j ) )
);
New Window( "My output",
	H List Box(
		For( j = 1, j &amp;lt;= 10, j++,
			dt &amp;lt;&amp;lt; Bivariate(
				Y( Eval( colListY ) ),
				X( Column( dt, "Temp" ) ),
				Fit Line( {Line Color( {212, 73, 88} )} )
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Jul 2023 18:20:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-am-trying-to-plot-bivariate-of-the-new-columns-created-but/m-p/664156#M85253</guid>
      <dc:creator>ParametricStudy</dc:creator>
      <dc:date>2023-07-31T18:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to plot bivariate of the new columns created but having issue creating another list.</title>
      <link>https://community.jmp.com/t5/Discussions/I-am-trying-to-plot-bivariate-of-the-new-columns-created-but/m-p/664169#M85254</link>
      <description>&lt;P&gt;Please use the&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1690827680078.png" style="width: 0px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55477i167B3C0A0CCCD43D/image-size/small?v=v2&amp;amp;px=200" width="0" height="0" role="button" title="txnelson_0-1690827680078.png" alt="txnelson_0-1690827680078.png" /&gt;&lt;/span&gt;icon at the top of the edit window when entering JSL.&amp;nbsp; It make is so much easier to read and interpret.&lt;/P&gt;
&lt;P&gt;There are 2 issues that I see.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The formula that you are using
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Formula( alpha_x / (alpha_x + :X) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;has a memory variable in it's definition.&amp;nbsp; Within your JSL, you have that memory variable changing as you move from column to column.&amp;nbsp; It appears that you are assuming that once you apply the formula to a given column, that the value for alpha_x will be set for the formula and not change.&amp;nbsp; This is not true.&amp;nbsp; Whenever the formula is run, it will take the current value of alpha_x and use it.&amp;nbsp; That is why I specified in my previous response to use a Substitute function to replace the alpha value when the formula is created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2. The values in the colListY list are set to mu1, mu2, mu2...etc.&amp;nbsp; Arn't the Y variable you want to plot named mu14, mu14.1, mu14.2 etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 18:30:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-am-trying-to-plot-bivariate-of-the-new-columns-created-but/m-p/664169#M85254</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-07-31T18:30:49Z</dc:date>
    </item>
  </channel>
</rss>

