<?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: Plot means and proportions over time w/ PROC MEANS &amp;amp; FREQ in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776829#M31420</link>
    <description>I just posted it above.</description>
    <pubDate>Wed, 27 Oct 2021 17:44:36 GMT</pubDate>
    <dc:creator>_maldini_</dc:creator>
    <dc:date>2021-10-27T17:44:36Z</dc:date>
    <item>
      <title>Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776636#M31402</link>
      <description>&lt;P&gt;Is there a way to graph means and proportions derived from PROC MEANS and PROC FREQ across 3 time points (var = timepoint)?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC MEANS DATA=kb.data_01 maxdec=1;
	VAR 
	promis_pain_intensity 
	promis_pain_interference 
	;
	CLASS timepoint;
	TITLE "Descriptive Statistics for Continuous Measures";
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ DATA=kb.data_01 ORDER=FREQ; 
	/*   by timepoint ; */&lt;BR /&gt;    TABLE  
	aes_yn
	dose 
	adherence
	satisfaction
	 / PLOTS=(freqplot);
	TITLE "Descriptive Statistics for Categorical Measures";
RUN; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 23:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776636#M31402</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2021-10-26T23:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776638#M31403</link>
      <description>&lt;P&gt;First you'd use PROC MEANS and FREQ to save the output to a data set. Depending on exactly what you want you may be able to plot it directly from the raw data or need to pre-summarize the data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some instructions and explanations on how to capture output that is shown. &lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods-output-statement/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods-output-statement/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've included examples below for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your variables are binary then you can also use the fact that the average of a 0/1 variable is the percentage or proportion of the variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC MEANS DATA=kb.data_01 maxdec=1;
	VAR 
	promis_pain_intensity 
	promis_pain_interference 
	;
	CLASS timepoint;
	TITLE "Descriptive Statistics for Continuous Measures";
ods output summary = want_means;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ DATA=kb.data_01 ORDER=FREQ; 
	/*   by timepoint ; */    TABLE  
	aes_yn
	dose 
	adherence
	satisfaction
	 / PLOTS=(freqplot);
	TITLE "Descriptive Statistics for Categorical Measures";
ods output onewayfreq=want_freq;
RUN; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Graphing it may be harder, depends on exactly what you're looking for.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some examples of common graph types. There are fully worked examples here so you can follow the code/output together.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://robslink.com/SAS/ods2/aaaindex.htm" target="_blank"&gt;https://robslink.com/SAS/ods2/aaaindex.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have more specific questions please feel free to ask!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36911"&gt;@_maldini_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way to graph means and proportions derived from PROC MEANS and PROC FREQ across 3 time points (var = timepoint)?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC MEANS DATA=kb.data_01 maxdec=1;
	VAR 
	promis_pain_intensity 
	promis_pain_interference 
	;
	CLASS timepoint;
	TITLE "Descriptive Statistics for Continuous Measures";
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ DATA=kb.data_01 ORDER=FREQ; 
	/*   by timepoint ; */&lt;BR /&gt;    TABLE  
	aes_yn
	dose 
	adherence
	satisfaction
	 / PLOTS=(freqplot);
	TITLE "Descriptive Statistics for Categorical Measures";
RUN; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 23:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776638#M31403</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-26T23:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776805#M31408</link>
      <description>&lt;P&gt;This is great.&amp;nbsp;Thank you!&lt;/P&gt;
&lt;P&gt;A few other questions. The syntax below seems to work, but I can't seem to figure out the proc sgplot syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Proc means data=kb.data_01 maxdec=1;
	var 
	age
	promis_pain_intensity 
	promis_pain_interference 
	;
	class timepoint;
	title "Descriptive Statistics for Continuous Measures";
	ods output summary = want_means;
run;

proc print data=want_means;
var promis_pain_interference_Mean promis_pain_intensity_Mean;
by timepoint;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2021-10-27 at 9.42.04 AM.png" style="width: 509px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65096iC2944EE896E1076E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-10-27 at 9.42.04 AM.png" alt="Screen Shot 2021-10-27 at 9.42.04 AM.png" /&gt;&lt;/span&gt;&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;
&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;
&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;
&lt;P&gt;I've done my best to adapt the code from the desired robslink.com &lt;A href="https://robslink.com/SAS/ods2/sct1.sas" target="_self"&gt;page&lt;/A&gt;, but the means aren't plotted on the graph (see below).&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-10-27 at 9.45.32 AM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65097iCD91D1B0F9E48325/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-10-27 at 9.45.32 AM.png" alt="Screen Shot 2021-10-27 at 9.45.32 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;ods graphics / attrpriority=none;
proc sgplot data=want_means aspect=1 noautolegend;
styleattrs datasymbols=(diamondfilled squarefilled) 
 datacontrastcolors=(navy magenta) datalinepatterns=(solid);
series x=timepoint y=promis_pain_interference_Mean / lineattrs=(thickness=3px)
 markers markerattrs=(size=12pt);
yaxis
 values=(4 to 20 by 1) label='PROMIS Pain Interference Score (Mean)'
 labelattrs=(size=16pt weight=bold color=gray33)
 valueattrs=(size=16pt weight=bold color=gray33)
 offsetmin=0 offsetmax=0 grid minor minorcount=3;
xaxis
 values=(0 to 2 by 1) label='Timepoint'
 labelattrs=(size=16pt weight=bold color=gray33)
 valueattrs=(size=16pt weight=bold color=gray33)
 offsetmin=0 offsetmax=0 grid minor minorcount=3;
run;
quit;
ODS HTML CLOSE;
ODS LISTING;&lt;/PRE&gt;
&lt;P&gt;Any clues in my syntax? Also, do you know how I would add SD bars?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 16:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776805#M31408</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2021-10-27T16:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776808#M31409</link>
      <description>Show your log as well.</description>
      <pubDate>Wed, 27 Oct 2021 16:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776808#M31409</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-27T16:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776810#M31410</link>
      <description>Also, how would I incorporate a group variable in the proc means that would also be output to the new dataset? For example, if I wanted to plot the change in means of males and females?</description>
      <pubDate>Wed, 27 Oct 2021 16:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776810#M31410</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2021-10-27T16:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776812#M31411</link>
      <description>Change your CLASS statement.</description>
      <pubDate>Wed, 27 Oct 2021 16:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776812#M31411</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-27T16:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776813#M31412</link>
      <description>SAS doesn't like the "onewayfreq" statement? &lt;BR /&gt;&lt;BR /&gt;Log:&lt;BR /&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt; NOTE: ODS statements in the SAS Studio environment may disable some output features.&lt;BR /&gt; 69         &lt;BR /&gt; 70         Proc freq data=kb.data_01 ORDER=FREQ;&lt;BR /&gt; 71         /* where timepoint = "fu_1_arm_2"; */&lt;BR /&gt; 72         /*  by timepoint ; */&lt;BR /&gt; 73          table&lt;BR /&gt; 74         /* source */&lt;BR /&gt; 75         /* location_pn */&lt;BR /&gt; 76         /* oral_meds_yn */&lt;BR /&gt; 77         /* top_meds_yn */&lt;BR /&gt; 78         /* aes_yn */&lt;BR /&gt; 79         /* aes_sev */&lt;BR /&gt; 80         /* aes_hc */&lt;BR /&gt; 81         /* aes_acn */&lt;BR /&gt; 82         /* aes_out */&lt;BR /&gt; 83         dose&lt;BR /&gt; 84         freq&lt;BR /&gt; 85         /* adherence */&lt;BR /&gt; 86         satisfaction&lt;BR /&gt; 87         /* saf_effec */&lt;BR /&gt; 88          / plots=(freqplot);&lt;BR /&gt; 89         &lt;BR /&gt; 90         /* FORMAT advise yes_no_fmt.; */&lt;BR /&gt; 91         TITLE "Descriptive Statistics for Categorical Measures";&lt;BR /&gt; 92         ods output onewayfreq=want_freq;&lt;BR /&gt; 93         RUN;&lt;BR /&gt; &lt;BR /&gt; WARNING: Output 'onewayfreq' was not created.  Make sure that the output object name, label, or path is spelled correctly.  Also, &lt;BR /&gt;          verify that the appropriate procedure options are used to produce the requested output object.  For example, verify that &lt;BR /&gt;          the NOPRINT option is not used.</description>
      <pubDate>Wed, 27 Oct 2021 16:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776813#M31412</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2021-10-27T16:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776825#M31417</link>
      <description>Ah...it's onewayfreqs missed the S there.&lt;BR /&gt;&lt;BR /&gt;Your graphs shouldn't have been affected as that's the want_means data set though. &lt;BR /&gt;You didn't show the log for the graph portion though.</description>
      <pubDate>Wed, 27 Oct 2021 17:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776825#M31417</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-27T17:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776826#M31418</link>
      <description>&lt;BR /&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt; NOTE: ODS statements in the SAS Studio environment may disable some output features.&lt;BR /&gt; 69         &lt;BR /&gt; 70         ods graphics / attrpriority=none;&lt;BR /&gt; 71         proc sgplot data=want_means aspect=1 noautolegend;&lt;BR /&gt; 72         styleattrs datasymbols=(diamondfilled squarefilled)&lt;BR /&gt; 73          datacontrastcolors=(navy magenta) datalinepatterns=(solid);&lt;BR /&gt; 74         series x=timepoint y=promis_pain_interference_Mean / lineattrs=(thickness=3px)&lt;BR /&gt; 75          markers markerattrs=(size=12pt);&lt;BR /&gt; 76         yaxis&lt;BR /&gt; 77          values=(4 to 20 by 1) label='PROMIS Pain Interference Score (Mean)'&lt;BR /&gt; 78          labelattrs=(size=16pt weight=bold color=gray33)&lt;BR /&gt; 79          valueattrs=(size=16pt weight=bold color=gray33)&lt;BR /&gt; 80          offsetmin=0 offsetmax=0 grid minor minorcount=3;&lt;BR /&gt; 81         xaxis&lt;BR /&gt; 82          values=(0 to 2 by 1) label='Timepoint'&lt;BR /&gt; 83          labelattrs=(size=16pt weight=bold color=gray33)&lt;BR /&gt; 84          valueattrs=(size=16pt weight=bold color=gray33)&lt;BR /&gt; 85          offsetmin=0 offsetmax=0 grid minor minorcount=3;&lt;BR /&gt; 86         run;&lt;BR /&gt; &lt;BR /&gt; NOTE: PROCEDURE SGPLOT used (Total process time):&lt;BR /&gt;       real time           0.11 seconds&lt;BR /&gt;       user cpu time       0.05 seconds&lt;BR /&gt;       system cpu time     0.01 seconds&lt;BR /&gt;       memory              8307.78k&lt;BR /&gt;       OS Memory           34604.00k&lt;BR /&gt;       Timestamp           10/27/2021 05:33:32 PM&lt;BR /&gt;       Step Count                        207  Switch Count  1&lt;BR /&gt;       Page Faults                       0&lt;BR /&gt;       Page Reclaims                     1337&lt;BR /&gt;       Page Swaps                        0&lt;BR /&gt;       Voluntary Context Switches        153&lt;BR /&gt;       Involuntary Context Switches      0&lt;BR /&gt;       Block Input Operations            0&lt;BR /&gt;       Block Output Operations           512&lt;BR /&gt;       &lt;BR /&gt; NOTE: Some of the tick values have been thinned.&lt;BR /&gt; NOTE: There were 3 observations read from the data set WORK.WANT_MEANS.&lt;BR /&gt; &lt;BR /&gt; 87         quit;&lt;BR /&gt; 88         ODS HTML CLOSE;&lt;BR /&gt; 89         ODS LISTING;&lt;BR /&gt; 90         &lt;BR /&gt; 91         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt; 101</description>
      <pubDate>Wed, 27 Oct 2021 17:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776826#M31418</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2021-10-27T17:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776829#M31420</link>
      <description>I just posted it above.</description>
      <pubDate>Wed, 27 Oct 2021 17:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/776829#M31420</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2021-10-27T17:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/777036#M31436</link>
      <description>Does the log help explain why the means aren't showing up on the graph?</description>
      <pubDate>Thu, 28 Oct 2021 16:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/777036#M31436</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2021-10-28T16:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/777041#M31437</link>
      <description>Nope.</description>
      <pubDate>Thu, 28 Oct 2021 16:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/777041#M31437</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-28T16:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/777101#M31439</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like the problem lies in the commented-out syntax. When I run it w/o specifying details about the x and y axis, I get this graph:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2021-10-28 at 11.46.09 AM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65166i2F2F3E75262C0757/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-10-28 at 11.46.09 AM.png" alt="Screen Shot 2021-10-28 at 11.46.09 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=want_means;
	series x=timepoint y=promis_pain_intensity_Mean / lineattrs=(thickness=3px) 
		markers markerattrs=(size=10pt);

	/* yaxis */
	/*  values=(3 to 15 by 1) label='PROMIS Pain Intensity Score (Mean)' */
	/*  labelattrs=(size=14pt weight=bold color=gray33) */
	/*  valueattrs=(size=14pt weight=bold color=gray33) */
	/*  offsetmin=0 offsetmax=0 grid minor minorcount=1; */
	/*   */
	
	/* xaxis */
	/*  values=(0 to 2 by 1) label='Timepoint' */
	/*  labelattrs=(size=14pt weight=bold color=gray33) */
	/*  valueattrs=(size=14pt weight=bold color=gray33) */
	/*  offsetmin=0 offsetmax=0 grid minor minorcount=1; */
	
	format Timepoint $timepoint_.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Maybe you could point me in the direction of some alternative syntax for customizing the axes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 18:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/777101#M31439</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2021-10-28T18:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/777103#M31440</link>
      <description>To debug something like this, add your options/statements one by one until you find the one that's breaking it. Then look up that option in the documentatation and see which is causing the issue. &lt;BR /&gt;&lt;BR /&gt;My guess, your X axis values 0 to 2 but you have formatted values may be causing the issue. Your original code didn't have a format so if that was actually in the code it may be part of the issue.</description>
      <pubDate>Thu, 28 Oct 2021 18:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/777103#M31440</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-28T18:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/778549#M31535</link>
      <description>&lt;P&gt;You were correct. It was a format issue. The problem is resolve and I will accept this as the solution. Thanks!&lt;BR /&gt;&lt;BR /&gt;Is there an option for adding the value of the data point to the graph? I can't seem to find one in the documentation.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 19:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/778549#M31535</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2021-11-10T19:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means and proportions over time w/ PROC MEANS &amp; FREQ</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/778557#M31538</link>
      <description>&lt;H4 class="xisDoc-optionCategory"&gt;Label options&lt;/H4&gt;
&lt;H5 class="xisDoc-option"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n1jkqnmk6y6ms9n1b2vvubyzqd4a.htm#n0zftxt9qq2pdgn1symuat15dur2d" target="_blank"&gt;CURVELABEL&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;=“&lt;EM class="xisDoc-userSuppliedValue"&gt;text-string&lt;/EM&gt;”&amp;gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;P class="xisDoc-shortDescription"&gt;adds a label for the curve.&lt;/P&gt;
&lt;H5 class="xisDoc-option"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n1jkqnmk6y6ms9n1b2vvubyzqd4a.htm#p0dk1x2qtnfn66n11yrt9l54l5npg" target="_blank"&gt;CURVELABELATTRS=&lt;SPAN class="xisDoc-choice"&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;style-element&lt;/EM&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;(&lt;EM class="xisDoc-userSuppliedValue"&gt;options&lt;/EM&gt;)&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| (&lt;EM class="xisDoc-userSuppliedValue"&gt;options&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;P class="xisDoc-shortDescription"&gt;specifies the appearance of the labels in the plot when you use the CURVELABEL= option.&lt;/P&gt;
&lt;H5 class="xisDoc-option"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n1jkqnmk6y6ms9n1b2vvubyzqd4a.htm#n0m661zy7deafpn1r4qqw0qnq5wbg" target="_blank"&gt;CURVELABELLOC=&lt;SPAN class="xisDoc-choice"&gt;OUTSIDE&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| INSIDE&lt;/SPAN&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;P class="xisDoc-shortDescription"&gt;specifies whether the curve label is placed inside the plot axes (INSIDE) or outside of the plot axes (OUTSIDE).&lt;/P&gt;
&lt;H5 class="xisDoc-option"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n1jkqnmk6y6ms9n1b2vvubyzqd4a.htm#n1lxgmorrzt45cn1shctlyw8ljv3f" target="_blank"&gt;CURVELABELPOS=&lt;SPAN class="xisDoc-choice"&gt;AUTO&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| END&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| MAX&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| MIN&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| START&lt;/SPAN&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;P class="xisDoc-shortDescription"&gt;specifies the location of the curve label.&lt;/P&gt;
&lt;H5 class="xisDoc-option"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n1jkqnmk6y6ms9n1b2vvubyzqd4a.htm#n0nw171sq0e411n1wgxqgp619995d" target="_blank"&gt;DATALABEL&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;=&lt;EM class="xisDoc-userSuppliedValue"&gt;variable&lt;/EM&gt;&amp;gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;P class="xisDoc-shortDescription"&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;displays a label for each data point.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;&lt;FONT color="#000000"&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n1jkqnmk6y6ms9n1b2vvubyzqd4a.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n1jkqnmk6y6ms9n1b2vvubyzqd4a.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 17:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plot-means-and-proportions-over-time-w-PROC-MEANS-amp-FREQ/m-p/778557#M31538</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-04T17:27:29Z</dc:date>
    </item>
  </channel>
</rss>

