<?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 Bivariate Profiler Remembered Settings Dynamic Term Value Variables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Bivariate-Profiler-Remembered-Settings-Dynamic-Term-Value/m-p/906221#M106460</link>
    <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd really appreciate some help with some scripting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working on a bivariate fit script that takes two columns from a column dialog. I want to load a profiler that has some remembered settings already loaded. The issue I'm having is that I can't find the right way to reference/substitute the column name within the term value of the profiler. In the example code below I've left the hardcoded references to the column and the script works but I need the script to be flexible with different column names. I've found an user with a similar issue but I've been unsuccessful adapting the solution that worked for them to my example, see&amp;nbsp;&lt;A title="Profiler: Using variables in term value script not working" href="https://community.jmp.com/t5/Discussions/Profiler-Using-variables-in-term-value-script-not-working/td-p/899781" target="_self"&gt;&lt;SPAN&gt;Profiler: Using variables in term value script not working&lt;/SPAN&gt;&lt;/A&gt;. My experience to date with writing expressions and substituting terms has been limited to formula columns so this problem has been a bit much for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help correcting this issue would be greatly appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cathal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Example",
	Add Rows( 10 ),
	New Column( "X",
		Numeric,
		"Continuous",
		Format( "Best", 15 ),
		Set Values( [20, 40, 60, 80, 100, 120, 140, 160, 180, 200] )
	),
	New Column( "Y",
		Numeric,
		"Continuous",
		Format( "Best", 15 ),
		Set Values( [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] )
	)
); 

// Open dialog to select columns
dlg = Column Dialog(
    colX = Col List( "X",
        Min Col( 1 ), 
        Max Col( 1 ),
    ),
    colY = Col List( "Y",
        Min Col( 1 ), 
        Max Col( 1 ),
    ),
);

// Store list of selected columns
Eval List( Remove( dlg, -1 ) );

// Launch platform: Bivariate
report = Bivariate( 
	Y( colY[1] ) , 
	X( colX[1] ), 
		Fit Polynomial(	1,
		{Profiler(
			1,
			Confidence Intervals( 1 ),	
			Term Value( "X"n( 30, Lock( 0 ), Show( 1 ) ) ), // Need to replace with dynamic reference
			Remember Settings( "1-Month", Differences Report( 0 ) ),
			Term Value( "X"n( 60, Lock( 0 ), Show( 1 ) ) ), // Need to replace with dynamic reference
			Remember Settings( "2-Months" ),
			Term Value( "X"n( 90, Lock( 0 ), Show( 1 ) ) ), // Need to replace with dynamic reference
			Remember Settings( "3-Months", Differences Report( 1 ) ),
			Term Value( "X"n( 90, Lock( 0 ), Show( 1 ) ) ) // Need to replace with dynamic reference
		)}
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Oct 2025 09:14:02 GMT</pubDate>
    <dc:creator>Cathal</dc:creator>
    <dc:date>2025-10-07T09:14:02Z</dc:date>
    <item>
      <title>Bivariate Profiler Remembered Settings Dynamic Term Value Variables</title>
      <link>https://community.jmp.com/t5/Discussions/Bivariate-Profiler-Remembered-Settings-Dynamic-Term-Value/m-p/906221#M106460</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd really appreciate some help with some scripting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working on a bivariate fit script that takes two columns from a column dialog. I want to load a profiler that has some remembered settings already loaded. The issue I'm having is that I can't find the right way to reference/substitute the column name within the term value of the profiler. In the example code below I've left the hardcoded references to the column and the script works but I need the script to be flexible with different column names. I've found an user with a similar issue but I've been unsuccessful adapting the solution that worked for them to my example, see&amp;nbsp;&lt;A title="Profiler: Using variables in term value script not working" href="https://community.jmp.com/t5/Discussions/Profiler-Using-variables-in-term-value-script-not-working/td-p/899781" target="_self"&gt;&lt;SPAN&gt;Profiler: Using variables in term value script not working&lt;/SPAN&gt;&lt;/A&gt;. My experience to date with writing expressions and substituting terms has been limited to formula columns so this problem has been a bit much for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help correcting this issue would be greatly appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cathal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Example",
	Add Rows( 10 ),
	New Column( "X",
		Numeric,
		"Continuous",
		Format( "Best", 15 ),
		Set Values( [20, 40, 60, 80, 100, 120, 140, 160, 180, 200] )
	),
	New Column( "Y",
		Numeric,
		"Continuous",
		Format( "Best", 15 ),
		Set Values( [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] )
	)
); 

// Open dialog to select columns
dlg = Column Dialog(
    colX = Col List( "X",
        Min Col( 1 ), 
        Max Col( 1 ),
    ),
    colY = Col List( "Y",
        Min Col( 1 ), 
        Max Col( 1 ),
    ),
);

// Store list of selected columns
Eval List( Remove( dlg, -1 ) );

// Launch platform: Bivariate
report = Bivariate( 
	Y( colY[1] ) , 
	X( colX[1] ), 
		Fit Polynomial(	1,
		{Profiler(
			1,
			Confidence Intervals( 1 ),	
			Term Value( "X"n( 30, Lock( 0 ), Show( 1 ) ) ), // Need to replace with dynamic reference
			Remember Settings( "1-Month", Differences Report( 0 ) ),
			Term Value( "X"n( 60, Lock( 0 ), Show( 1 ) ) ), // Need to replace with dynamic reference
			Remember Settings( "2-Months" ),
			Term Value( "X"n( 90, Lock( 0 ), Show( 1 ) ) ), // Need to replace with dynamic reference
			Remember Settings( "3-Months", Differences Report( 1 ) ),
			Term Value( "X"n( 90, Lock( 0 ), Show( 1 ) ) ) // Need to replace with dynamic reference
		)}
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Oct 2025 09:14:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bivariate-Profiler-Remembered-Settings-Dynamic-Term-Value/m-p/906221#M106460</guid>
      <dc:creator>Cathal</dc:creator>
      <dc:date>2025-10-07T09:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate Profiler Remembered Settings Dynamic Term Value Variables</title>
      <link>https://community.jmp.com/t5/Discussions/Bivariate-Profiler-Remembered-Settings-Dynamic-Term-Value/m-p/906237#M106463</link>
      <description>&lt;P&gt;I think something like this might work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Example",
	Add Rows(10),
	New Column("X",
		Numeric,
		"Continuous",
		Format("Best", 15),
		Set Values([20, 40, 60, 80, 100, 120, 140, 160, 180, 200])
	),
	New Column("Y",
		Numeric,
		"Continuous",
		Format("Best", 15),
		Set Values([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
	)
); 

dlg = Column Dialog(
	colX = Col List("X", Min Col(1), Max Col(1), ),
	colY = Col List("Y", Min Col(1), Max Col(1), ),

);
Eval List(Remove(dlg, -1));

report = Eval(Substitute(
	Expr(dt &amp;lt;&amp;lt; Bivariate(
		Y(colY[1]),
		X(colX[1]),
		Fit Polynomial(
			1,
			{Profiler(
				1,
				Confidence Intervals(1),
				Term Value(_x_(30, Lock(0), Show(1))),
				Remember Settings("1-Month", Differences Report(0)),
				Term Value(_x_(60, Lock(0), Show(1))),
				Remember Settings("2-Months"),
				Term Value(_x_(90, Lock(0), Show(1))),
				Remember Settings("3-Months", Differences Report(1)),
				Term Value(_x_(90, Lock(0), Show(1)))
			)}
		)
	)),
	Expr(_x_), Name Expr(AsColumn(dt, colX[1]));
));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Oct 2025 09:50:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bivariate-Profiler-Remembered-Settings-Dynamic-Term-Value/m-p/906237#M106463</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-10-07T09:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Bivariate Profiler Remembered Settings Dynamic Term Value Variables</title>
      <link>https://community.jmp.com/t5/Discussions/Bivariate-Profiler-Remembered-Settings-Dynamic-Term-Value/m-p/906267#M106465</link>
      <description>&lt;P&gt;&lt;SPAN&gt;That works perfectly.&amp;nbsp;&lt;/SPAN&gt;Thanks&amp;nbsp;&lt;SPAN&gt;Jarmo!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 12:05:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bivariate-Profiler-Remembered-Settings-Dynamic-Term-Value/m-p/906267#M106465</guid>
      <dc:creator>Cathal</dc:creator>
      <dc:date>2025-10-07T12:05:32Z</dc:date>
    </item>
  </channel>
</rss>

