<?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: Bivarate Linear Fit of multiple Regressions - Scripting a Combined Data table from Parameter Estimates in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Bivarate-Linear-Fit-of-multiple-Regressions-Scripting-a-Combined/m-p/378758#M62860</link>
    <description>I was so close, thank you!</description>
    <pubDate>Wed, 21 Apr 2021 16:46:44 GMT</pubDate>
    <dc:creator>jnikkel</dc:creator>
    <dc:date>2021-04-21T16:46:44Z</dc:date>
    <item>
      <title>Bivarate Linear Fit of multiple Regressions - Scripting a Combined Data table from Parameter Estimates</title>
      <link>https://community.jmp.com/t5/Discussions/Bivarate-Linear-Fit-of-multiple-Regressions-Scripting-a-Combined/m-p/378728#M62854</link>
      <description>&lt;P&gt;I have been working on scripting some data analysis done in JMP with multiple tabulate, Y by X Bivarate Fit, and split table steps. I have been able to generate scripts for everything except step where I right click in a Parameter estimates TableBox from the Fit Group report and select 'Make Combined Data Table"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions for how to accomplish this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Script language is here:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "data file directory" );
obj = dt &amp;lt;&amp;lt; Tabulate(
	Add Table(
		Column Table( Analysis Columns( :KT3, :Log Age, :k31, :N1 ), Statistics( Mean ) ),
		Row Table( Grouping Columns( :Batch No., :Age ) )
	)
);

obj &amp;lt;&amp;lt; Make into Data Table;
New Window( "",
	V List Box(
		Fit Group(
			Bivariate(
				SendToByGroup( {:Batch No. == "By Variable 1"} ),
				SendToByGroup( {:Batch No. == "By Variable 1"}, Y( :Name( "Mean(KT3)" ) ) ),
				SendToByGroup(
					{:Batch No. == "By Variable 1", Platform Index( 2 )},
					Y( :Name( "Mean(k31)" ) )
				),
				SendToByGroup(
					{:Batch No. == "By Variable 1", Platform Index( 3 )},
					Y( :Name( "Mean(N1)" ) )
				),
				SendToByGroup( {:Batch No. == "By Variable 2"}, Y( :Name( "Mean(KT3)" ) ) ),
				SendToByGroup(
					{:Batch No. == "By Variable 2", Platform Index( 2 )},
					Y( :Name( "Mean(k31)" ) )
				),
				SendToByGroup(
					{:Batch No. == "By Variable 2", Platform Index( 3 )},
					Y( :Name( "Mean(N1)" ) )
				),
				SendToByGroup( {:Batch No. == "By Variable 3"}, Y( :Name( "Mean(KT3)" ) ) ),
				SendToByGroup(
					{:Batch No. == "By Variable 3", Platform Index( 2 )},
					Y( :Name( "Mean(k31)" ) )
				),
				SendToByGroup(
					{:Batch No. == "By Variable 3", Platform Index( 3 )},
					Y( :Name( "Mean(N1)" ) )
				),
				SendToByGroup( {:Batch No. == "By Variable 4"}, Y( :Name( "Mean(KT3)" ) ) ),
				SendToByGroup(
					{:Batch No. == "By Variable 4", Platform Index( 2 )},
					Y( :Name( "Mean(k31)" ) )
				),
				SendToByGroup(
					{:Batch No. == "By Variable 4", Platform Index( 3 )},
					Y( :Name( "Mean(N1)" ) )
				),
				SendToByGroup( {:Batch No. == "By Variable 5"}, Y( :Name( "Mean(KT3)" ) ) ),
				SendToByGroup(
					{:Batch No. == "By Variable 5", Platform Index( 2 )},
					Y( :Name( "Mean(k31)" ) )
				),
				SendToByGroup(
					{:Batch No. == "By Variable 5", Platform Index( 3 )},
					Y( :Name( "Mean(N1)" ) )
				),
				SendToByGroup( {:Batch No. == "By Variable 6"}, Y( :Name( "Mean(KT3)" ) ) ),
				SendToByGroup(
					{:Batch No. == "By Variable 6", Platform Index( 2 )},
					Y( :Name( "Mean(k31)" ) )
				),
				SendToByGroup(
					{:Batch No. == "By Variable 6", Platform Index( 3 )},
					Y( :Name( "Mean(N1)" ) )
				),
				SendToByGroup( {:Batch No. == "By Variable 7"}, Y( :Name( "Mean(KT3)" ) ) ),
				SendToByGroup(
					{:Batch No. == "By Variable 7", Platform Index( 2 )},
					Y( :Name( "Mean(k31)" ) )
				),
				SendToByGroup(
					{:Batch No. == "By Variable 7", Platform Index( 3 )},
					Y( :Name( "Mean(N1)" ) )
				),
				SendToByGroup( {:Batch No. == "By Variable 8"}, Y( :Name( "Mean(KT3)" ) ) ),
				SendToByGroup(
					{:Batch No. == "By Variable 8", Platform Index( 2 )},
					Y( :Name( "Mean(k31)" ) )
				),
				SendToByGroup(
					{:Batch No. == "By Variable 8", Platform Index( 3 )},
					Y( :Name( "Mean(N1)" ) )
				),
				X( :Name( "Mean(Log Age)" ) ),
				Fit Line( {Line Color( {212, 73, 88} )} ),
				By( :Batch No. )
			)
		)
	)
);
Report( Fit Group[1] )["Parameter Estimates"][Table Box( 3 )] &amp;lt;&amp;lt; Make Combined Data Table;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:44:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bivarate-Linear-Fit-of-multiple-Regressions-Scripting-a-Combined/m-p/378728#M62854</guid>
      <dc:creator>jnikkel</dc:creator>
      <dc:date>2023-06-09T19:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bivarate Linear Fit of multiple Regressions - Scripting a Combined Data table from Parameter Estimates</title>
      <link>https://community.jmp.com/t5/Discussions/Bivarate-Linear-Fit-of-multiple-Regressions-Scripting-a-Combined/m-p/378757#M62859</link>
      <description>&lt;P&gt;To get what you want, change&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Bivariate(&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Biv = Bivariate(&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and change&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Report ( Fit Group[1] ) ["Parameter Estimates"][Table Box( 3)] &amp;lt;&amp;lt; Make Combined Data Table;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Report ( Biv[1] ) ["Parameter Estimates"][Table Box( 1)] &amp;lt;&amp;lt; Make Combined Data Table;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Apr 2021 16:33:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bivarate-Linear-Fit-of-multiple-Regressions-Scripting-a-Combined/m-p/378757#M62859</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-04-21T16:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bivarate Linear Fit of multiple Regressions - Scripting a Combined Data table from Parameter Estimates</title>
      <link>https://community.jmp.com/t5/Discussions/Bivarate-Linear-Fit-of-multiple-Regressions-Scripting-a-Combined/m-p/378758#M62860</link>
      <description>I was so close, thank you!</description>
      <pubDate>Wed, 21 Apr 2021 16:46:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bivarate-Linear-Fit-of-multiple-Regressions-Scripting-a-Combined/m-p/378758#M62860</guid>
      <dc:creator>jnikkel</dc:creator>
      <dc:date>2021-04-21T16:46:44Z</dc:date>
    </item>
  </channel>
</rss>

