<?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 Making a data table from Least Square Mean Table in Fit Model in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Making-a-data-table-from-Least-Square-Mean-Table-in-Fit-Model/m-p/256676#M50429</link>
    <description>&lt;P&gt;I am trying to write a script that takes a data table, runs a fit model analysis based on several construct model effects, and then creates a data table from the least squares means table, specifically for the strain_id input. Below is the script I am currently using to run the fit model on my data but I am not sure how to extract the least squares means table. The only way I know how to do this is to right click on the data from the fit model report and click the "make into a data table option." Could someone please explain how to do this same thing with a JSL script? Thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;fm = Data Table( dt_pv ) &amp;lt;&amp;lt; Fit Model(
	Y( :assay_main_prod ),
	Effects( :strain_id, :experiment_id, :main_plate_id ),
	Personality( Standard Least Squares ),
	Emphasis( Effect Leverage ),
	Run( Residuals( 1 ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Jun 2023 23:26:50 GMT</pubDate>
    <dc:creator>gtchbe2019</dc:creator>
    <dc:date>2023-06-09T23:26:50Z</dc:date>
    <item>
      <title>Making a data table from Least Square Mean Table in Fit Model</title>
      <link>https://community.jmp.com/t5/Discussions/Making-a-data-table-from-Least-Square-Mean-Table-in-Fit-Model/m-p/256676#M50429</link>
      <description>&lt;P&gt;I am trying to write a script that takes a data table, runs a fit model analysis based on several construct model effects, and then creates a data table from the least squares means table, specifically for the strain_id input. Below is the script I am currently using to run the fit model on my data but I am not sure how to extract the least squares means table. The only way I know how to do this is to right click on the data from the fit model report and click the "make into a data table option." Could someone please explain how to do this same thing with a JSL script? Thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;fm = Data Table( dt_pv ) &amp;lt;&amp;lt; Fit Model(
	Y( :assay_main_prod ),
	Effects( :strain_id, :experiment_id, :main_plate_id ),
	Personality( Standard Least Squares ),
	Emphasis( Effect Leverage ),
	Run( Residuals( 1 ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:26:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Making-a-data-table-from-Least-Square-Mean-Table-in-Fit-Model/m-p/256676#M50429</guid>
      <dc:creator>gtchbe2019</dc:creator>
      <dc:date>2023-06-09T23:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Making a data table from Least Square Mean Table in Fit Model</title>
      <link>https://community.jmp.com/t5/Discussions/Making-a-data-table-from-Least-Square-Mean-Table-in-Fit-Model/m-p/256680#M50430</link>
      <description>&lt;P&gt;The details on how to maneuver around the Display Trees of the output, is documented in the Scripting Guide.&amp;nbsp; But basically, the Report Output from the various platforms is a structure of display objects that can be referenced by name and/or location and to have messages passed to them.&amp;nbsp; Below is a Fit Model close to what you are asking for, that runs the model and then goes to the Least Squares Means Table of your choice and tells it to Create Data Table.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
fm = dt &amp;lt;&amp;lt; Fit Model(
	Y( :weight ),
	Effects( :age, :sex ),
	Personality( Standard Least Squares ),
	Emphasis( Effect Leverage ),
	Run( Residuals( 1 ) )
);

Report( fm )["age"]["Least Squares Means Table"][Table Box( 1 )] &amp;lt;&amp;lt; make data table;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Apr 2020 04:55:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Making-a-data-table-from-Least-Square-Mean-Table-in-Fit-Model/m-p/256680#M50430</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-08T04:55:43Z</dc:date>
    </item>
  </channel>
</rss>

