<?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: Exporting  Variance Components Table of Variability Chart in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/54691#M30913</link>
    <description>&lt;P&gt;Your issue is that you are using a "By" element in your Variability Chart.&amp;nbsp; When this is done, a separate Tree Structure is created for each of the "By" groups.&amp;nbsp; Therefore, you need to reference which of the "By" groups you want to reference.&amp;nbsp; I am assuming that you want to output all of the Analysis of Variance tables for all of your "By" groups, and likewise, all of the Variance Components.&amp;nbsp; So you will want to not want to "Make into Data Table", but rather, "Make Combined Data Table".&amp;nbsp; Here is the code modification I believe you will want:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtANOVA = report(var[1])["Analysis of Variance"][TableBox(1)] &amp;lt;&amp;lt; Make Combined Data Table;
dtVarComp = report(var[1])["Variance Components"][TableBox(1)] &amp;lt;&amp;lt; Make Combined Data Table;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 09 Apr 2018 12:16:18 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-04-09T12:16:18Z</dc:date>
    <item>
      <title>Exporting  Variance Components Table of Variability Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/53909#M30451</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i don't know how to populate a new table with the data output of a Variability Chart with jsl code. I load a table input excel file, i run a bivariate and then a variability chart..but i'm not able to get the values of the tables reported in the output and fill a new table with that data..Below i report the code that perform the analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thak you for any suggestion,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dt = Open("myfile.xlsx",Worksheets("Sheet1"));&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; New Column( "LN theoretical Relative Potency %",&lt;BR /&gt;Numeric,&lt;BR /&gt;"Continuous",&lt;BR /&gt;Format( "Fixed Dec", 12, 3 ),&lt;BR /&gt;Formula( LnZ( :Theoretical Relative Potency % ) )&lt;BR /&gt;);&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "LN Result (RP%)",&lt;BR /&gt;Numeric,&lt;BR /&gt;"Continuous",&lt;BR /&gt;Format( "Fixed Dec", 12, 3 ),&lt;BR /&gt;Formula( LnZ( :Name( "Result (RP%)" ) ) ),&lt;BR /&gt;Set Selected&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;Bivariate(&lt;BR /&gt;Y( :Name( "LN Result (RP%)" ) ),&lt;BR /&gt;X( :LN theoretical Relative Potency % ),&lt;BR /&gt;Fit Line( {Line Color( {213, 72, 87} )} )&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;dt1 = Variability Chart(&lt;BR /&gt;Y( :Name( "LN Result (RP%)" ) ),&lt;BR /&gt;X( :Trial ),&lt;BR /&gt;Model( "Nested" ),&lt;BR /&gt;Max Iter( 100 ),&lt;BR /&gt;Conv Limit( 0.00000001 ),&lt;BR /&gt;Number Integration Abscissas( 128 ),&lt;BR /&gt;Number Function Evals( 65536 ),&lt;BR /&gt;Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),&lt;BR /&gt;Std Dev Chart( 1 ),&lt;BR /&gt;Variance Components( 1 ),&lt;BR /&gt;By( :LN theoretical Relative Potency % )&lt;BR /&gt;);&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 11:09:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/53909#M30451</guid>
      <dc:creator>sbruno</dc:creator>
      <dc:date>2018-03-27T11:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting  Variance Components Table of Variability Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/53918#M30459</link>
      <description>&lt;P&gt;Below is a modified version of your script that will output the tables I think you want output?&amp;nbsp; I have included in the script, comments on what the changes are, and what their purposes are.&amp;nbsp; The documentation on how to access the report tree structures of the output is found in&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Books==&amp;gt;Scripting Guide&lt;/P&gt;
&lt;P&gt;It is necessary reading if you want to get into JSL&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "myfile.xlsx", Worksheets( "Sheet1" ) );

dt &amp;lt;&amp;lt; New Column( "LN theoretical Relative Potency %",
	Numeric,
	"Continuous",
	Format( "Fixed Dec", 12, 3 ),
	Formula( LnZ( :Theoretical Relative Potency % ) )
);
dt &amp;lt;&amp;lt; New Column( "LN Result (RP%)",
	Numeric,
	"Continuous",
	Format( "Fixed Dec", 12, 3 ),
	Formula( LnZ( :Name( "Result (RP%)" ) ) ),
	Set Selected
);

Bivariate(
	Y( :Name( "LN Result (RP%)" ) ),
	X( :LN theoretical Relative Potency % ),
	Fit Line( {Line Color( {213, 72, 87} )} )
);

// Create a Handle/Pointer to the output display so it can be
// referenced
var = dt &amp;lt;&amp;lt; Variability Chart(
	Y( :Name( "LN Result (RP%)" ) ),
	X( :Trial ),
	Model( "Nested" ),
	Max Iter( 100 ),
	Conv Limit( 0.00000001 ),
	Number Integration Abscissas( 128 ),
	Number Function Evals( 65536 ),
	Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
	Std Dev Chart( 1 ),
	Variance Components( 1 ),
	By( :LN theoretical Relative Potency % )
);

// Point to the display report tables you want to generate the new data tables from
// and sent the Make into Data Table message to each of them.  Note the dtANOVA and
// dtVarComp, will become the pointers to the newly created data tables
dtANOVA = report(var)["Analysis of Variance"][TableBox(1)] &amp;lt;&amp;lt; Make into Data Table;
dtVarComp = report(var)["Variance Components"][TableBox(1)] &amp;lt;&amp;lt; Make into Data Table;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Mar 2018 14:26:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/53918#M30459</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-27T14:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting  Variance Components Table of Variability Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/54084#M30552</link>
      <description>&lt;P&gt;Dear Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your suggestion. I'm trying to find how to write the data of the variable "dtVarComp"&amp;nbsp;into excel file in the "Scripting Guide"...but i really don't understand. I think that i have to create a new table before and then export it, but how can i populate the rows and the columns? how can i access the elements of the&amp;nbsp;&lt;SPAN&gt;"dtVarComp" variable?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is frustrating but i will find a solution!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Simone&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 10:52:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/54084#M30552</guid>
      <dc:creator>sbruno</dc:creator>
      <dc:date>2018-03-29T10:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting  Variance Components Table of Variability Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/54091#M30557</link>
      <description>&lt;P&gt;Are you asking how do you save the data table created from the Variability Components Analysis back into Excel?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, then to save the data table created can be saved as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtVarComp &amp;lt;&amp;lt; Save As("Path to folder\Name.xls");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 13:05:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/54091#M30557</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-29T13:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting  Variance Components Table of Variability Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/54681#M30903</link>
      <description>&lt;P&gt;Dear Jim,&lt;/P&gt;&lt;P&gt;I tried the commands you wrote but i have always an error when using the command "Make into Data Table". In the Log file i found:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Send Expects Scriptable Object in access or evaluation of 'Send' , Report( var )["Analysis of Variance"][Table Box( 1 )] &amp;lt;&amp;lt; /*###*/&lt;BR /&gt;Make into Data Table/*###*/"&lt;/P&gt;&lt;P&gt;Actually the report of Variance Components creates 5 tables. the name of the table in which i'm interested in are: TableBox(2),&amp;nbsp;&lt;SPAN&gt;TableBox(4),&amp;nbsp;TableBox(6),&amp;nbsp;TableBox(8),&amp;nbsp;TableBox(10).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tryed to change "Table Box( 1 )" in one of the table names listed above but i'm always the same error..I googoled a lot but i didn't find a solution..and the log informations are really poor..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I attach in a word file the script and the log..If you could give me some other suggestions on how to fix this error..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you very much&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 09:31:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/54681#M30903</guid>
      <dc:creator>sbruno</dc:creator>
      <dc:date>2018-04-09T09:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting  Variance Components Table of Variability Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/54691#M30913</link>
      <description>&lt;P&gt;Your issue is that you are using a "By" element in your Variability Chart.&amp;nbsp; When this is done, a separate Tree Structure is created for each of the "By" groups.&amp;nbsp; Therefore, you need to reference which of the "By" groups you want to reference.&amp;nbsp; I am assuming that you want to output all of the Analysis of Variance tables for all of your "By" groups, and likewise, all of the Variance Components.&amp;nbsp; So you will want to not want to "Make into Data Table", but rather, "Make Combined Data Table".&amp;nbsp; Here is the code modification I believe you will want:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtANOVA = report(var[1])["Analysis of Variance"][TableBox(1)] &amp;lt;&amp;lt; Make Combined Data Table;
dtVarComp = report(var[1])["Variance Components"][TableBox(1)] &amp;lt;&amp;lt; Make Combined Data Table;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Apr 2018 12:16:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/54691#M30913</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-04-09T12:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting  Variance Components Table of Variability Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/54701#M30920</link>
      <description>Thank you very much Jim...this is exactly what i need..:-)&lt;BR /&gt;thank you&lt;BR /&gt;thank you&lt;BR /&gt;...&lt;BR /&gt;thank you&lt;BR /&gt;&lt;BR /&gt;Simone</description>
      <pubDate>Mon, 09 Apr 2018 13:58:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-Variance-Components-Table-of-Variability-Chart/m-p/54701#M30920</guid>
      <dc:creator>sbruno</dc:creator>
      <dc:date>2018-04-09T13:58:54Z</dc:date>
    </item>
  </channel>
</rss>

