<?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 N option? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/279566#M14739</link>
    <description>&lt;P&gt;Hi!&amp;nbsp; I'm wondering if there is an option to include in the Proc Logistic preocedure that would output the number of observations used for each variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example, if i am using gender as an independent variable, can I add something to the procedure that would output # males and # female observations in addition to all the statistical output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2016 21:16:37 GMT</pubDate>
    <dc:creator>jenim514</dc:creator>
    <dc:date>2016-06-22T21:16:37Z</dc:date>
    <item>
      <title>N option?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/279566#M14739</link>
      <description>&lt;P&gt;Hi!&amp;nbsp; I'm wondering if there is an option to include in the Proc Logistic preocedure that would output the number of observations used for each variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example, if i am using gender as an independent variable, can I add something to the procedure that would output # males and # female observations in addition to all the statistical output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 21:16:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/279566#M14739</guid>
      <dc:creator>jenim514</dc:creator>
      <dc:date>2016-06-22T21:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: N option?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/279568#M14740</link>
      <description>&lt;P&gt;Not AFAIK, in general, I run a proc freq/means ahead of time to get a table of characteristics.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's one way to get several proc freq results into a nice table at once:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/e0903d269d4a71316a4e" target="_blank"&gt;https://gist.github.com/statgeek/e0903d269d4a71316a4e&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*This code is an example of how to generate a table with 
Variable Name, Variable Value, Frequency, Percent, Cumulative Freq and Cum Pct
No macro's are required
Use Proc Freq to generate the list, list variables in a table statement if only specific variables are desired
Use ODS Table to capture the output and then format the output into a printable table.
*/

*Run frequency for tables;
ods table onewayfreqs=temp;
proc freq data=sashelp.class;
	table sex age;
run;

*Format output;
data want;
length variable $32. variable_value $50.;
set temp;
Variable=scan(table, 2);

Variable_Value=strip(trim(vvaluex(variable)));

keep variable variable_value frequency percent cum:;
label variable='Variable' 
	variable_value='Variable Value';
run;

*Display;
proc print data=want(obs=20) label;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jun 2016 21:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/279568#M14740</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-22T21:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: N option?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/279577#M14741</link>
      <description>&lt;P&gt;You will easily get some useful information (means, frequencies) in proc logistic with option SIMPLE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=sashelp.heart simple;
class sex smoking_status;
model status = sex smoking_status weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;every table can be captured with ODS OUTPUT.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 22:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/279577#M14741</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-22T22:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: N option?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/279578#M14742</link>
      <description>&lt;P&gt;Learn something new every day &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 22:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/279578#M14742</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-22T22:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: N option?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/279580#M14743</link>
      <description>&lt;P&gt;So do I&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 22:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/279580#M14743</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-22T22:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: N option?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/280798#M14795</link>
      <description>&lt;P&gt;Mostly from you two&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 14:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/N-option/m-p/280798#M14795</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-06-28T14:12:56Z</dc:date>
    </item>
  </channel>
</rss>

