<?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 plot mean with std error in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124555#M4829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to take the mean of the log of a variable. There are some values of the variable which is 1. so the log value will be "0"(zero) value . then i am supposed to take the mean of all the values that contains some '0' too and plot against std error. so when i do proc means&amp;nbsp; i get&amp;nbsp; missing&amp;nbsp; mean as well as std error . i am suppose to plot this mean of the log value of the variable with the std error. Can anyone please guide me to overcome this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 19:06:22 GMT</pubDate>
    <dc:creator>sas9</dc:creator>
    <dc:date>2013-04-29T19:06:22Z</dc:date>
    <item>
      <title>plot mean with std error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124555#M4829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to take the mean of the log of a variable. There are some values of the variable which is 1. so the log value will be "0"(zero) value . then i am supposed to take the mean of all the values that contains some '0' too and plot against std error. so when i do proc means&amp;nbsp; i get&amp;nbsp; missing&amp;nbsp; mean as well as std error . i am suppose to plot this mean of the log value of the variable with the std error. Can anyone please guide me to overcome this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 19:06:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124555#M4829</guid>
      <dc:creator>sas9</dc:creator>
      <dc:date>2013-04-29T19:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: plot mean with std error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124556#M4830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not clear as to what your problem is exactly. Which of the following conditions apply to your case. You get missing values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;in the log-transformed value because the value is &amp;lt;= 0&lt;/LI&gt;&lt;LI&gt;in the mean because the log-transformed values are all missing&lt;/LI&gt;&lt;LI&gt;in the std because the mean is missing or there is only one nonmissing value&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 19:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124556#M4830</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-04-29T19:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: plot mean with std error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124557#M4831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankx for reaching out to me. I do have logarithmic values of the variable as zero since there are some values of the variable which are 1 and when i take log(1) it gives me zero.further to that i take mean of the log value of the variable and st error . the mean as well as stderror comes as missing.&lt;/P&gt;&lt;P&gt;all i want to do is take the log of a variable and then plot mean of the log with the stderror.but the variable has some 1 values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 21:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124557#M4831</guid>
      <dc:creator>sas9</dc:creator>
      <dc:date>2013-04-29T21:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: plot mean with std error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124558#M4832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still don't understand the issue.&amp;nbsp; Here are some data that have been log-transformed. The results of PROC MEANS are not missing. Can you modify my DATA step to mimic the data that you have? Or can you explain how your analysis is different ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data A;&lt;/P&gt;&lt;P&gt;input x @@;&lt;/P&gt;&lt;P&gt;logX = log(x);&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;0 1 2 3 4 5 4 0 3 2 1 2 3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=A mean std;&lt;/P&gt;&lt;P&gt;var logX;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 00:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124558#M4832</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-04-30T00:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: plot mean with std error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124559#M4833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rick for getting back to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; variable(dose)&amp;nbsp; values are&amp;nbsp; for example 1 1 1 1 1 1.5 1.6 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ds(keep =usubjid&amp;nbsp; dose);&lt;/P&gt;&lt;P&gt;set datax;&lt;/P&gt;&lt;P&gt;where dose ne&amp;nbsp; . ;&lt;/P&gt;&lt;P&gt;dose1 =log(dose);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i do this where ever dose values are equal to 1 i get dose1 =0&lt;/P&gt;&lt;P&gt;i get a note in logafter i run that part of the code as "mathematical operations could not be performed "and there is "an invalid argument to function log".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i did &lt;/P&gt;&lt;P&gt;proc means data =datax ;&lt;/P&gt;&lt;P&gt;by usubjid;&lt;/P&gt;&lt;P&gt;var dose1;&lt;/P&gt;&lt;P&gt;output out =datax1&amp;nbsp;&amp;nbsp; n=n&amp;nbsp;&amp;nbsp; mean=mean&amp;nbsp;&amp;nbsp; stderr=stderr;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the datax1 dataset has values where mean=o and std err=0 and also some values where stderr =missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 02:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124559#M4833</guid>
      <dc:creator>sas9</dc:creator>
      <dc:date>2013-04-30T02:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: plot mean with std error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124560#M4834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your second step doesn't use the dataset named ds created in the first step. Try this instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data ds(keep =usubjid&amp;nbsp; dose1);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;set datax;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;where dose &amp;gt; 0 ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;dose1 =log(dose);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc means data=ds ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;by usubjid;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var dose1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;output out =datax1&amp;nbsp;&amp;nbsp; n=n&amp;nbsp;&amp;nbsp; mean=mean&amp;nbsp;&amp;nbsp; stderr=stderr;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 02:36:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124560#M4834</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-04-30T02:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: plot mean with std error</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124561#M4835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.. your idea of &amp;gt;0 removed the log problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did use the correct dataset in my program but i guess typed it wrong in the sample code that i sent. I am sorry .Thank you very much though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 14:57:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-mean-with-std-error/m-p/124561#M4835</guid>
      <dc:creator>sas9</dc:creator>
      <dc:date>2013-04-30T14:57:15Z</dc:date>
    </item>
  </channel>
</rss>

