<?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: Is there an option to add the N statistic onto PROC MIXED? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/766694#M37483</link>
    <description>&lt;P&gt;Consider displaying&amp;nbsp; Univariate(PROC MEANS) and MIXED statistics in rows.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-09-08 153918.png" style="width: 260px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63406i04B4C20B94911C8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-09-08 153918.png" alt="Screenshot 2021-09-08 153918.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Sep 2021 20:42:37 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2021-09-08T20:42:37Z</dc:date>
    <item>
      <title>Is there an option to add the N statistic onto PROC MIXED?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/766683#M37482</link>
      <description>&lt;P&gt;On this instructional document about PROC MIXED:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.pharmasug.org/proceedings/2021/SA/PharmaSUG-2021-SA-062.pdf" target="_blank"&gt;https://www.pharmasug.org/proceedings/2021/SA/PharmaSUG-2021-SA-062.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;They demonstrate the example below to create an output that shows Least Square Means and columns for Estimate, Standard Error, DF, Lower and Upper. I need all of those, but I also want the N statistic. Does anyone know if there is an option that can be added in so I can get N on this output please? Thanks.&lt;/P&gt;
&lt;PRE&gt;ods output lsmeans=pb_lsmean diffs=pb_lsdiff;
 proc mixed data=qlqc2 method=reml covtest empirical;
by param;
class subjid trt visit;
model chg=base trt visit trt*visit;
random intercept/ subject=subjid;
repeated visit/ subject=subjid type=ar(1);
lsmeans trt*visit/ cl pdiff;
 run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Sep 2021 20:14:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/766683#M37482</guid>
      <dc:creator>Buzzy_Bee</dc:creator>
      <dc:date>2021-09-08T20:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an option to add the N statistic onto PROC MIXED?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/766694#M37483</link>
      <description>&lt;P&gt;Consider displaying&amp;nbsp; Univariate(PROC MEANS) and MIXED statistics in rows.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-09-08 153918.png" style="width: 260px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63406i04B4C20B94911C8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-09-08 153918.png" alt="Screenshot 2021-09-08 153918.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 20:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/766694#M37483</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2021-09-08T20:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an option to add the N statistic onto PROC MIXED?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/766696#M37484</link>
      <description>&lt;P&gt;Add the NObs table to your ODS OUTPUT statement:&lt;/P&gt;
&lt;PRE&gt;ods output lsmeans=pb_lsmean diffs=pb_lsdiff nobs=pb_nobs;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Sep 2021 20:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/766696#M37484</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-09-08T20:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an option to add the N statistic onto PROC MIXED?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/766775#M37487</link>
      <description>That only shows me the number of observations in the data set though, which Proc Mixed already does by default. What I mean is, I need the N statistic. So in the LSM table where it shows Treatment Drug A and the Estimate, DF etc, I need an N column in there that would tell me there were say 100 for Drug A, and 120 for Drug B.&lt;BR /&gt;The Proc Means procedure shows N, so currently I'm creating a Proc Mixed followed by Proc Means to generate all of the statistics I need. But I wanted to create a nice, tidy table that shows them all together that I can easily copy and paste onto an MS Word document.</description>
      <pubDate>Thu, 09 Sep 2021 07:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/766775#M37487</guid>
      <dc:creator>Buzzy_Bee</dc:creator>
      <dc:date>2021-09-09T07:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an option to add the N statistic onto PROC MIXED?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/766776#M37488</link>
      <description>&lt;P&gt;I'm not sure what you mean by this. Industry convention requires statistics to be shown in tables where each statistic has a vertical column that displays the results and the treatments are listed horizontally in the table. If I displayed it vertically, no one would be able to read it or use in their reports.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 07:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/766776#M37488</guid>
      <dc:creator>Buzzy_Bee</dc:creator>
      <dc:date>2021-09-09T07:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an option to add the N statistic onto PROC MIXED?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/769642#M37623</link>
      <description>&lt;P&gt;You are going to have to merge the PROC MEANS output with the PROC MIXED output.&amp;nbsp; PROC SQL is probably the best tool for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 18:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-an-option-to-add-the-N-statistic-onto-PROC-MIXED/m-p/769642#M37623</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-09-22T18:39:19Z</dc:date>
    </item>
  </channel>
</rss>

