<?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: Accessing summary of fit when By argument is used in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Accessing-summary-of-fit-when-By-argument-is-used/m-p/739505#M92146</link>
    <description>&lt;P&gt;When you use By you will get a list of references (you can check this by using Show for example). Depending how you build your search for the reference, you might be able to just change from rpt to rpt[1] which is then single item&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

biv = dt &amp;lt;&amp;lt; Bivariate(
	Y(:weight),
	X(:height),
	Fit Line(), 
	By(:sex),
);

rpt = biv &amp;lt;&amp;lt; Report;
show(rpt);

rpt[1]["Bivariate Fit of weight By height?", "Linear Fit", "Summary of Fit", Table Box(1)] &amp;lt;&amp;lt; Make Combined Data Table;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 28 Mar 2024 13:58:46 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-03-28T13:58:46Z</dc:date>
    <item>
      <title>Accessing summary of fit when By argument is used</title>
      <link>https://community.jmp.com/t5/Discussions/Accessing-summary-of-fit-when-By-argument-is-used/m-p/739501#M92145</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I make a summary of fit table by using the script:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Data Table("Big Class Data");

biv = dt &amp;lt;&amp;lt; Bivariate(
					Y( :weight ),
					X( :height ),
					Fit Line(),
					//By(:sex),
);

rpt = biv &amp;lt;&amp;lt; Report;

rpt["Bivariate Fit of weight By height?", "Linear Fit", "Summary of Fit",Table Box( 1 )] &amp;lt;&amp;lt; Make Combined Data Table;&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;However,&amp;nbsp;I don't understand why the same script doesn't work if I apply &lt;EM&gt;By (:sex)&lt;/EM&gt; argument?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following massage:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gam1_0-1711633165728.png" style="width: 298px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62791iF3D5E55B86F5FAAB/image-dimensions/298x176?v=v2" width="298" height="176" role="button" title="gam1_0-1711633165728.png" alt="gam1_0-1711633165728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can someone explain what I do wrong and how to fix it?&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 13:50:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Accessing-summary-of-fit-when-By-argument-is-used/m-p/739501#M92145</guid>
      <dc:creator>gam1</dc:creator>
      <dc:date>2024-03-28T13:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing summary of fit when By argument is used</title>
      <link>https://community.jmp.com/t5/Discussions/Accessing-summary-of-fit-when-By-argument-is-used/m-p/739505#M92146</link>
      <description>&lt;P&gt;When you use By you will get a list of references (you can check this by using Show for example). Depending how you build your search for the reference, you might be able to just change from rpt to rpt[1] which is then single item&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

biv = dt &amp;lt;&amp;lt; Bivariate(
	Y(:weight),
	X(:height),
	Fit Line(), 
	By(:sex),
);

rpt = biv &amp;lt;&amp;lt; Report;
show(rpt);

rpt[1]["Bivariate Fit of weight By height?", "Linear Fit", "Summary of Fit", Table Box(1)] &amp;lt;&amp;lt; Make Combined Data Table;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Mar 2024 13:58:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Accessing-summary-of-fit-when-By-argument-is-used/m-p/739505#M92146</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-03-28T13:58:46Z</dc:date>
    </item>
  </channel>
</rss>

