<?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 Unistats Roland's Macro in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Unistats-Roland-s-Macro/m-p/7404#M780</link>
    <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
I am starting to use the Roland's library macros and I have a little problem.&lt;BR /&gt;
&lt;BR /&gt;
For unistats macro, the parameter misspct says,&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;misspct=no  By default, do not include missing category counts in the&lt;BR /&gt;
                   percentage calculation. If set to "no" then p-values will&lt;BR /&gt;
                   not be based on the missing category.&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
But, or I do not understand what it says or this parameter does not work.&lt;BR /&gt;
&lt;BR /&gt;
The following macros produce the same percentages:&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
value sex  1 = 'Male'&lt;BR /&gt;
           2 = 'Female';&lt;BR /&gt;
value age  11-13 = 'Age group 1'&lt;BR /&gt;
		   14-high = 'Age group 2';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data class;&lt;BR /&gt;
set sashelp.class;&lt;BR /&gt;
if sex = 'M' then sex2 = 1;&lt;BR /&gt;
else sex2 = 2;&lt;BR /&gt;
if name in ('Alfred','Alice','Barbara') then age =.;&lt;BR /&gt;
format sex2 sex. age age.;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%popfmt(class,sex2,uniqueid=name) ;&lt;BR /&gt;
&lt;BR /&gt;
%unistats(dsin=class, unicatrep=yes, misspct=yes, varlist= age, pvarlist= age);&lt;BR /&gt;
&lt;BR /&gt;
%unistats(dsin=class, unicatrep=yes, misspct=no, varlist= age, pvarlist= age);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Could somebody tell me how can I get percentages only based in the non-missing values?&lt;BR /&gt;
&lt;BR /&gt;
I would like to know also if programmers are using this macros?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance!!&lt;BR /&gt;
&lt;BR /&gt;
Juan Vte.</description>
    <pubDate>Mon, 10 Mar 2008 16:27:04 GMT</pubDate>
    <dc:creator>JuanVte</dc:creator>
    <dc:date>2008-03-10T16:27:04Z</dc:date>
    <item>
      <title>Unistats Roland's Macro</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Unistats-Roland-s-Macro/m-p/7404#M780</link>
      <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
I am starting to use the Roland's library macros and I have a little problem.&lt;BR /&gt;
&lt;BR /&gt;
For unistats macro, the parameter misspct says,&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;misspct=no  By default, do not include missing category counts in the&lt;BR /&gt;
                   percentage calculation. If set to "no" then p-values will&lt;BR /&gt;
                   not be based on the missing category.&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
But, or I do not understand what it says or this parameter does not work.&lt;BR /&gt;
&lt;BR /&gt;
The following macros produce the same percentages:&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
value sex  1 = 'Male'&lt;BR /&gt;
           2 = 'Female';&lt;BR /&gt;
value age  11-13 = 'Age group 1'&lt;BR /&gt;
		   14-high = 'Age group 2';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data class;&lt;BR /&gt;
set sashelp.class;&lt;BR /&gt;
if sex = 'M' then sex2 = 1;&lt;BR /&gt;
else sex2 = 2;&lt;BR /&gt;
if name in ('Alfred','Alice','Barbara') then age =.;&lt;BR /&gt;
format sex2 sex. age age.;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%popfmt(class,sex2,uniqueid=name) ;&lt;BR /&gt;
&lt;BR /&gt;
%unistats(dsin=class, unicatrep=yes, misspct=yes, varlist= age, pvarlist= age);&lt;BR /&gt;
&lt;BR /&gt;
%unistats(dsin=class, unicatrep=yes, misspct=no, varlist= age, pvarlist= age);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Could somebody tell me how can I get percentages only based in the non-missing values?&lt;BR /&gt;
&lt;BR /&gt;
I would like to know also if programmers are using this macros?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance!!&lt;BR /&gt;
&lt;BR /&gt;
Juan Vte.</description>
      <pubDate>Mon, 10 Mar 2008 16:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Unistats-Roland-s-Macro/m-p/7404#M780</guid>
      <dc:creator>JuanVte</dc:creator>
      <dc:date>2008-03-10T16:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unistats Roland's Macro</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Unistats-Roland-s-Macro/m-p/7405#M781</link>
      <description>Ok, I got it!!&lt;BR /&gt;
&lt;BR /&gt;
the solution regards in the use of the parameter &lt;B&gt;pctcalc=cat&lt;/B&gt;!!&lt;BR /&gt;
&lt;BR /&gt;
As I said, I am starting to study these macros but at the moment I think these are really recommendable!!&lt;BR /&gt;
&lt;BR /&gt;
JV</description>
      <pubDate>Tue, 11 Mar 2008 10:27:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Unistats-Roland-s-Macro/m-p/7405#M781</guid>
      <dc:creator>JuanVte</dc:creator>
      <dc:date>2008-03-11T10:27:32Z</dc:date>
    </item>
  </channel>
</rss>

