<?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: Standard error in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Standard-error/m-p/511462#M2175</link>
    <description>&lt;P&gt;Your suggestion worked! Thank you so much!!&lt;/P&gt;&lt;P&gt;And yes, I had a proc means data=&amp;nbsp; statement above it in my code, just didn't copy that section into my original post. Thank you again for the assistance&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Nov 2018 18:20:03 GMT</pubDate>
    <dc:creator>Martina4</dc:creator>
    <dc:date>2018-11-08T18:20:03Z</dc:date>
    <item>
      <title>Standard error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Standard-error/m-p/511443#M2169</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find the standard errors of my data set using SAS university.&lt;/P&gt;&lt;P&gt;When I type in the following code it spits out a standard deviation not standard error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;proc means&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;var&lt;/FONT&gt; total_yield sorg_yield weed_yield leg_yield;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;by&lt;/FONT&gt; trt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;output out&lt;/FONT&gt; = b &lt;FONT color="#0000FF"&gt;mean&lt;/FONT&gt;=totalydX sorgydX weedydX legydX &lt;FONT color="#0000FF"&gt;stderr&lt;/FONT&gt;=totalydSE sorgydSE weedydSE legydSE;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously I had used a different SAS program available at my school in which we would code for&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;proc means&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;noprint&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;var&lt;/FONT&gt; total_yield sorg_yield weed_yield leg_yield;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;by&lt;/FONT&gt; trt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;output&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;out&lt;/FONT&gt; = b &lt;FONT color="#0000FF"&gt;mean&lt;/FONT&gt;=totalydX sorgydX weedydX legydX &lt;FONT color="#0000FF"&gt;stderr&lt;/FONT&gt;=totalydSE sorgydSE weedydSE legydSE;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;and this would provide the means and standard error in a table that was outputed to excel. However when I try the noprint&amp;nbsp;option in SAS university it doesn't show where the output is or can be download from. Does anyone have a suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 17:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Standard-error/m-p/511443#M2169</guid>
      <dc:creator>Martina4</dc:creator>
      <dc:date>2018-11-08T17:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Standard error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Standard-error/m-p/511448#M2170</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/240463"&gt;@Martina4&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to find the standard errors of my data set using SAS university.&lt;/P&gt;
&lt;P&gt;When I type in the following code it spits out a standard deviation not standard error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;proc means&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;var&lt;/FONT&gt; total_yield sorg_yield weed_yield leg_yield;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;by&lt;/FONT&gt; trt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;output out&lt;/FONT&gt; = b &lt;FONT color="#0000FF"&gt;mean&lt;/FONT&gt;=totalydX sorgydX weedydX legydX &lt;FONT color="#0000FF"&gt;stderr&lt;/FONT&gt;=totalydSE sorgydSE weedydSE legydSE;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previously I had used a different SAS program available at my school in which we would code for&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;proc means&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;noprint&lt;/FONT&gt;;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;var&lt;/FONT&gt; total_yield sorg_yield weed_yield leg_yield;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;by&lt;/FONT&gt; trt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;output&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;out&lt;/FONT&gt; = b &lt;FONT color="#0000FF"&gt;mean&lt;/FONT&gt;=totalydX sorgydX weedydX legydX &lt;FONT color="#0000FF"&gt;stderr&lt;/FONT&gt;=totalydSE sorgydSE weedydSE legydSE;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;and this would provide the means and standard error in a table that was outputed to excel. However when I try the noprint&amp;nbsp;option in SAS university it doesn't show where the output is or can be download from. Does anyone have a suggestion?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The code is the exact same so you should be getting the standard errors, you're just looking in the wrong place. If you're looking at the HTML output, then yes that's the standard deviation because you did not specify the standard error on the PROC MEANS statement. The statistics on the PROC MEANS statement dictate what gets shown in the result.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The OUTPUT statement controls teh SAS output - it puts it into a table with the mean and standard errors, but that result is not displayed. Its in the output table OUT=&lt;STRONG&gt;B&lt;/STRONG&gt; - Table name is B.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;YOU SHOULD ALWAYS HAVE A DATA= ON YOUR PROC MEANS STATEMENT.&lt;/STRONG&gt; Otherwise you cannot be sure what data is being used especially if you run out of order. Make sure you specify the DATA= on all your PROC otherwise I guarantee you'll make a mistake somewhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try running this to see what you get.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means  &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;data = InputDataSET&lt;/STRONG&gt; &lt;/FONT&gt;&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Mean STDERR&lt;/STRONG&gt;&lt;/FONT&gt;;
var total_yield sorg_yield weed_yield leg_yield;
by trt;
output out = b mean=totalydX sorgydX weedydX legydX stderr=totalydSE sorgydSE weedydSE legydSE;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 17:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Standard-error/m-p/511448#M2170</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-08T17:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Standard error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Standard-error/m-p/511462#M2175</link>
      <description>&lt;P&gt;Your suggestion worked! Thank you so much!!&lt;/P&gt;&lt;P&gt;And yes, I had a proc means data=&amp;nbsp; statement above it in my code, just didn't copy that section into my original post. Thank you again for the assistance&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 18:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Standard-error/m-p/511462#M2175</guid>
      <dc:creator>Martina4</dc:creator>
      <dc:date>2018-11-08T18:20:03Z</dc:date>
    </item>
  </channel>
</rss>

