<?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: How do I plot individual variables over time in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675121#M23604</link>
    <description>This is definitely possible, take a look at the VBARPARM documentation within SGPLOT and see what options it offers to add them on. &lt;BR /&gt;Hint: LIMITLOWER/LIMITUPPER&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0mc5dtithid5mn13c54dlgaceq3.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0mc5dtithid5mn13c54dlgaceq3.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 06 Aug 2020 19:43:25 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-08-06T19:43:25Z</dc:date>
    <item>
      <title>How do I plot individual variables over time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675112#M23600</link>
      <description>&lt;P&gt;Hello All, I am attempting to plot the means of 8 individual variables in my dataset over time. I am using SAS university so proc gplot is not an option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is a way to take my proc means and plot it. So far nothing has worked. Here is the proc means I am running&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=wide_merged_file_sans_pooled mean stddev median min max;&lt;BR /&gt;var gmcsf_fuvisit_f0 gmcsf_fuvisit_f1 gmcsf_fuvisit_f2 gmcsf_fuvisit_f3 gmcsf_fuvisit_f5&lt;BR /&gt;gmcsf_fuvisit_f6 gmcsf_fuvisit_f7 gmcsf_fuvisit_f8; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to take the results of this proc means and plot it with an x-axis of "fuvisit"(each variable is a follow up visit) and a y axis of "Mean" along with standard deviation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice is appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 19:19:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675112#M23600</guid>
      <dc:creator>cdunlea</dc:creator>
      <dc:date>2020-08-06T19:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot individual variables over time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675117#M23602</link>
      <description>&lt;P&gt;When you post code please use a code block so that your code is formatted and legible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=wide_merged_file_sans_pooled mean stddev median min max;
var gmcsf_fuvisit_f0 gmcsf_fuvisit_f1 gmcsf_fuvisit_f2 gmcsf_fuvisit_f3 gmcsf_fuvisit_f5
gmcsf_fuvisit_f6 gmcsf_fuvisit_f7 gmcsf_fuvisit_f8; 
run;

 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;1. Save output from PROC MEANS to a data set&lt;/P&gt;
&lt;P&gt;2. Graph data from data set&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#1 is to add an ODS OUTPUT statement to capture the output, there are multiple ways to do this but this provides the data in a nice format for graphing. You do need to add the STACKODS option on the PROC MEANS statement as well.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=wide_merged_file_sans_pooled mean stddev median min max STACKODS;
var gmcsf_fuvisit_f0 gmcsf_fuvisit_f1 gmcsf_fuvisit_f2 gmcsf_fuvisit_f3 gmcsf_fuvisit_f5
gmcsf_fuvisit_f6 gmcsf_fuvisit_f7 gmcsf_fuvisit_f8; 
ods output summary = summaryStats;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;#2 Graph it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=summaryStats;
vbarparm category = variable response=mean;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/335031"&gt;@cdunlea&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello All, I am attempting to plot the means of 8 individual variables in my dataset over time. I am using SAS university so proc gplot is not an option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want is a way to take my proc means and plot it. So far nothing has worked. Here is the proc means I am running&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc means data=wide_merged_file_sans_pooled mean stddev median min max;&lt;BR /&gt;var gmcsf_fuvisit_f0 gmcsf_fuvisit_f1 gmcsf_fuvisit_f2 gmcsf_fuvisit_f3 gmcsf_fuvisit_f5&lt;BR /&gt;gmcsf_fuvisit_f6 gmcsf_fuvisit_f7 gmcsf_fuvisit_f8; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to take the results of this proc means and plot it with an x-axis of "fuvisit"(each variable is a follow up visit) and a y axis of "Mean" along with standard deviation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any advice is appreciated.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 19:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675117#M23602</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-06T19:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot individual variables over time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675120#M23603</link>
      <description>&lt;P&gt;Thank you Reeza!! It worked! Is there a way I can also add standard deviation to the graph as well?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 19:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675120#M23603</guid>
      <dc:creator>cdunlea</dc:creator>
      <dc:date>2020-08-06T19:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot individual variables over time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675121#M23604</link>
      <description>This is definitely possible, take a look at the VBARPARM documentation within SGPLOT and see what options it offers to add them on. &lt;BR /&gt;Hint: LIMITLOWER/LIMITUPPER&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0mc5dtithid5mn13c54dlgaceq3.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0mc5dtithid5mn13c54dlgaceq3.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Aug 2020 19:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675121#M23604</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-06T19:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot individual variables over time</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675122#M23605</link>
      <description>And it's likely easier if you add the LCLM and UCLM options to the PROC MEANS to get the lower and upper confidence limits of the mean if that's what you prefer.</description>
      <pubDate>Thu, 06 Aug 2020 19:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-plot-individual-variables-over-time/m-p/675122#M23605</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-06T19:45:30Z</dc:date>
    </item>
  </channel>
</rss>

