<?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 How to calculate confidence interval of mean  by proc univariate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-confidence-interval-of-mean-by-proc-univariate/m-p/341372#M78124</link>
    <description>&lt;P&gt;in proc means one can use CLM to get the confidence interval of the mean. How to output the CLM to a dataset?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=adxe N NMISS CLM  ;
  by trtp;
  var aval;
  where aval &amp;gt;.; 
/*  output out=TFMT2RD n=n mean=mean std=sd median=median min=min max=max q1=q1 q3=q3  ;*/
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in proc univariate, what is the option to do thid? cibasic (alpha=0.05)?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what are the output options to get the 95% CI of mean?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=adxe cibasic (alpha=0.05) noprint;
  by trtp;
  var aval;
  where aval &amp;gt;.; 
  output out=TFMT2RD n=n mean=mean std=sd median=median min=min max=max q1=q1 q3=q3  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2017 00:24:57 GMT</pubDate>
    <dc:creator>fengyuwuzu</dc:creator>
    <dc:date>2017-03-16T00:24:57Z</dc:date>
    <item>
      <title>How to calculate confidence interval of mean  by proc univariate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-confidence-interval-of-mean-by-proc-univariate/m-p/341372#M78124</link>
      <description>&lt;P&gt;in proc means one can use CLM to get the confidence interval of the mean. How to output the CLM to a dataset?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=adxe N NMISS CLM  ;
  by trtp;
  var aval;
  where aval &amp;gt;.; 
/*  output out=TFMT2RD n=n mean=mean std=sd median=median min=min max=max q1=q1 q3=q3  ;*/
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in proc univariate, what is the option to do thid? cibasic (alpha=0.05)?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what are the output options to get the 95% CI of mean?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=adxe cibasic (alpha=0.05) noprint;
  by trtp;
  var aval;
  where aval &amp;gt;.; 
  output out=TFMT2RD n=n mean=mean std=sd median=median min=min max=max q1=q1 q3=q3  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 00:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-confidence-interval-of-mean-by-proc-univariate/m-p/341372#M78124</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2017-03-16T00:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate confidence interval of mean  by proc univariate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-confidence-interval-of-mean-by-proc-univariate/m-p/341383#M78125</link>
      <description>&lt;P&gt;You can use the following method with any procedure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods trace on;
proc means data=sashelp.class N NMISS CLM;
  class sex;
  var weight;
  where weight &amp;gt;.; 
/*  output out=TFMT2RD n=n mean=mean std=sd median=median min=min max=max q1=q1 q3=q3  ;*/
run;
ods trace off;

/*get the name of the desired file from the log*/
ods output Means.Summary=want;
proc means data=sashelp.class N NMISS CLM;
  class sex;
  var weight;
  where weight &amp;gt;.; 
/*  output out=TFMT2RD n=n mean=mean std=sd median=median min=min max=max q1=q1 q3=q3  ;*/
run;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 00:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-confidence-interval-of-mean-by-proc-univariate/m-p/341383#M78125</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-16T00:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate confidence interval of mean  by proc univariate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-confidence-interval-of-mean-by-proc-univariate/m-p/341616#M78216</link>
      <description>&lt;P&gt;Note: You can also output them directly, but the above method is a lot more versatile. Additionally, if you use any of the special missing values (e.g., .A, .B, etc), you can capture all of them by using where not missing(variablename). e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data class;
  set sashelp.class;
  if _n_ in (2,4,6) then weight=.;
  else if _n_ in (3,5,7) then weight=.A;
run;

proc means data=class N NMISS CLM nway ;
  class sex;
  var weight;
  where weight &amp;gt;.;
  output out=want  /autoname;
run;

proc summary data=class N NMISS CLM  nway;
  class sex;
  var weight;
  where weight &amp;gt;.;
  output out=want2  /autoname;
run;

proc means data=class N NMISS CLM nway ;
  class sex;
  var weight;
  where not missing(weight);
  output out=want3  /autoname;
run;

proc summary data=class N NMISS CLM  nway;
  class sex;
  var weight;
  where not missing(weight);
  output out=want4  /autoname;
run;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 15:05:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-confidence-interval-of-mean-by-proc-univariate/m-p/341616#M78216</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-16T15:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate confidence interval of mean  by proc univariate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-confidence-interval-of-mean-by-proc-univariate/m-p/341636#M78220</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;I am a little confused don't you get the intervals

title 'Analysis of Female Heights';
ods select BasicIntervals;
proc univariate data=sashelp.class cibasic;
   var Height;
run;


The UNIVARIATE Procedure
Variable:  HEIGHT

     Basic Confidence Limits Assuming Normality

Parameter          Estimate     95% Confidence Limits

Mean               62.33684      59.86567    64.80801
Std Deviation       5.12708       3.87408     7.58204
Variance           26.28690      15.00852    57.48740

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Mar 2017 15:45:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-confidence-interval-of-mean-by-proc-univariate/m-p/341636#M78220</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-03-16T15:45:09Z</dc:date>
    </item>
  </channel>
</rss>

