<?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: How to get n values for these? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-n-values-for-these/m-p/809169#M81775</link>
    <description>&lt;P&gt;You want this ??&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc FREQ data=fixptsex;
	tables parent * Q3 / missing list;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 20:53:49 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2022-04-21T20:53:49Z</dc:date>
    <item>
      <title>How to get n values for these?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-n-values-for-these/m-p/809166#M81773</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the below output. I would also want to have N values for these. How can we produce them for all 6 rows?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output Diffs = AP_3way_diffs(keep = parent _parent _q3 q3 estimate stderr adjustment adjp rename=(adjp=pval));
proc mixed data=fixptsex;
	class parent Q3;
	model maleprod_n = parent Q3  parent*Q3;
	lsmeans parent*Q3 / diff adjust=tukey;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My output from this was as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RAVI2000_0-1650573494038.png" style="width: 645px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70690iC9399BAC3FDD91D8/image-dimensions/645x131?v=v2" width="645" height="131" role="button" title="RAVI2000_0-1650573494038.png" alt="RAVI2000_0-1650573494038.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would also like to have individual N values for each row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 20:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-n-values-for-these/m-p/809166#M81773</guid>
      <dc:creator>RAVI2000</dc:creator>
      <dc:date>2022-04-21T20:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get n values for these?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-n-values-for-these/m-p/809169#M81775</link>
      <description>&lt;P&gt;You want this ??&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc FREQ data=fixptsex;
	tables parent * Q3 / missing list;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 20:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-n-values-for-these/m-p/809169#M81775</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-04-21T20:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get n values for these?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-n-values-for-these/m-p/809174#M81776</link>
      <description>&lt;P&gt;This is the freq by q3 and parent.&lt;BR /&gt;It is not including maleprod or cross tabluation by q3*parent q3*parent. How would I also include but just get 6 obs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the code you provided. It's giving me as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RAVI2000_0-1650575430400.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70693iA06E9CB1C0DBDD8B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RAVI2000_0-1650575430400.png" alt="RAVI2000_0-1650575430400.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 21:10:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-n-values-for-these/m-p/809174#M81776</guid>
      <dc:creator>RAVI2000</dc:creator>
      <dc:date>2022-04-21T21:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get n values for these?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-n-values-for-these/m-p/809177#M81777</link>
      <description>&lt;P&gt;Not counting the cell where Q3 is missing ... you have four different combinations, and those are the N values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PROC MIXED output gives the differences between the LSMEANS, that is 6 differences (Four things taken two at a time is 4*3/2 = 6). There isn't really an N for the differences of LSMEANS in this case, but since you have the PROC FREQ output, you can indicate somehow how many data points are in each combination of the original variables.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 21:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-n-values-for-these/m-p/809177#M81777</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-21T21:25:07Z</dc:date>
    </item>
  </channel>
</rss>

