<?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: problem with output confidence interval using proc means in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-output-confidence-interval-using-proc-means/m-p/71266#M20550</link>
    <description>We already answered this question for you&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/message.jspa?messageID=34175#34175" target="_blank"&gt;http://support.sas.com/forums/message.jspa?messageID=34175#34175&lt;/A&gt;</description>
    <pubDate>Tue, 30 Mar 2010 20:29:46 GMT</pubDate>
    <dc:creator>Paige</dc:creator>
    <dc:date>2010-03-30T20:29:46Z</dc:date>
    <item>
      <title>problem with output confidence interval using proc means</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-output-confidence-interval-using-proc-means/m-p/71264#M20548</link>
      <description>Dear SAS users:&lt;BR /&gt;
&lt;BR /&gt;
I am trying to calculate means and confidence intervals for multiple variables (e.g 38 variables), listed in a table as 38 columns. My sas code is attached below. Somehow, the means and std can be calculated and print in the window, but the output file (out=tmp) only shows the result for the first variable V1. I am hoping get some help to have the full table with all the variable in it.The output is as follows:&lt;BR /&gt;
&lt;BR /&gt;
_TYPE_ _FREQ_ n mean stderr lclm uclm&lt;BR /&gt;
0 96 96 2.701145833 0.038329101 2.625052948 2.777238719&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
pharmpk&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
filename datain&lt;BR /&gt;
'd:\ ......csv';&lt;BR /&gt;
&lt;BR /&gt;
data fulldata;&lt;BR /&gt;
infile datain DELIMITER=',';&lt;BR /&gt;
input Prob V1 V2 V3 .....V38;&lt;BR /&gt;
if prob EQ _blank_ THEN delete;&lt;BR /&gt;
drop _blank_;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Proc means data=fulldata alpha=0.05;&lt;BR /&gt;
var V1 V2 V3 .....V38;&lt;BR /&gt;
OUTPUT OUT=tmp N=n MEAN=mean STDERR=stderr LCLM=lclm UCLM=uclm;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 26 Mar 2010 04:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-with-output-confidence-interval-using-proc-means/m-p/71264#M20548</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-26T04:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem with output confidence interval using proc means</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-output-confidence-interval-using-proc-means/m-p/71265#M20549</link>
      <description>You are SO close.&lt;BR /&gt;
&lt;BR /&gt;
The problem is that use used the option in the form "Mean = mean".  Since there can be only one variable in the output table named "mean" you got the mean (and other statistics) only for the first variable.&lt;BR /&gt;
&lt;BR /&gt;
There are two ways around this.  The first is to specify list, as in&lt;BR /&gt;
  Mean = (mean1 mean2...).  The second is to change the output line to&lt;BR /&gt;
&lt;BR /&gt;
OUTPUT OUT=tmp N MEAN STDERRr LCLM/autoname;&lt;BR /&gt;
&lt;BR /&gt;
The autoname option will produce an output data set with variables named mean_v1 mean_v2  etc.&lt;BR /&gt;
&lt;BR /&gt;
Needless to say, the first way is rarely used anymore.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
&lt;BR /&gt;
Jonathan&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Dear SAS users:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I am trying to calculate means and confidence&lt;BR /&gt;
&amp;gt; intervals for multiple variables (e.g 38 variables),&lt;BR /&gt;
&amp;gt; listed in a table as 38 columns. My sas code is&lt;BR /&gt;
&amp;gt; attached below. Somehow, the means and std can be&lt;BR /&gt;
&amp;gt; calculated and print in the window, but the output&lt;BR /&gt;
&amp;gt; file (out=tmp) only shows the result for the first&lt;BR /&gt;
&amp;gt; variable V1. I am hoping get some help to have the&lt;BR /&gt;
&amp;gt; full table with all the variable in it.The output is&lt;BR /&gt;
&amp;gt; as follows:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; _TYPE_ _FREQ_ n mean stderr lclm uclm&lt;BR /&gt;
&amp;gt; 0 96 96 2.701145833 0.038329101 2.625052948&lt;BR /&gt;
&amp;gt; 2.777238719&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanks&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; pharmpk&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; filename datain&lt;BR /&gt;
&amp;gt; 'd:\ ......csv';&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; data fulldata;&lt;BR /&gt;
&amp;gt; infile datain DELIMITER=',';&lt;BR /&gt;
&amp;gt; input Prob V1 V2 V3 .....V38;&lt;BR /&gt;
&amp;gt; if prob EQ _blank_ THEN delete;&lt;BR /&gt;
&amp;gt; drop _blank_;&lt;BR /&gt;
&amp;gt; run;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Proc means data=fulldata alpha=0.05;&lt;BR /&gt;
&amp;gt; var V1 V2 V3 .....V38;&lt;BR /&gt;
&amp;gt; OUTPUT OUT=tmp N=n MEAN=mean STDERR=stderr LCLM=lclm&lt;BR /&gt;
&amp;gt; UCLM=uclm;&lt;BR /&gt;
&amp;gt; run;</description>
      <pubDate>Tue, 30 Mar 2010 17:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-with-output-confidence-interval-using-proc-means/m-p/71265#M20549</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-30T17:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem with output confidence interval using proc means</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-output-confidence-interval-using-proc-means/m-p/71266#M20550</link>
      <description>We already answered this question for you&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/message.jspa?messageID=34175#34175" target="_blank"&gt;http://support.sas.com/forums/message.jspa?messageID=34175#34175&lt;/A&gt;</description>
      <pubDate>Tue, 30 Mar 2010 20:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-with-output-confidence-interval-using-proc-means/m-p/71266#M20550</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2010-03-30T20:29:46Z</dc:date>
    </item>
  </channel>
</rss>

