<?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: Plotting Component in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Plotting-Component/m-p/874086#M38793</link>
    <description>&lt;P&gt;Its not clear to me what your question is. Could you state a specific thing or two you want help with?&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 09:37:49 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-05-05T09:37:49Z</dc:date>
    <item>
      <title>Plotting Component</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plotting-Component/m-p/874085#M38792</link>
      <description>&lt;P&gt;Plotting Component(before this there was special section for means procedure)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Create a set of box-plots that make sense for this data. Choose two variables that are not subject/sessions/reps.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Be sure to include proper titles including the Subject ID and your chosen variables.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Consider that you are using a single subject. How are you going to handle the sessions and reps?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;As text printed out in your SAS results, please explain, in full sentences, what subject you used and how you handled the sessions and reps.&amp;nbsp;Discuss what the plots are telling you&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here is my code, but I don't know why it is not showing up on the screen, when I run the code. Could you help me to figure it out, please&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;options validvarname=V7;
proc import out = aa
datafile = "/PW_typing"
dbms = csv
replace;
getnames = YES;
run;
data mydata;
set aa;
where subject = "s020";
drop rep;
run;

proc means data=mydata mean;
var H.period DD.period.t UD.period.t H.t DD.t.i UD.t.i H.i DD.i.e UD.i.e H.e DD.e.five UD.e.five H.five DD.five.Shift.r UD.five.Shift.r H.Shift.r DD.Shift.r.o UD.Shift.r.o H.o DD.o.a UD.o.a H.a DD.a.n UD.a.n H.n DD.n.l UD.n.l H.l DD.l.Return UD.l.Return H.Return;
class sessionIndex;
run;

title "Means for subject s020";
proc print data=mydata(obs=5);
run;
proc means data = mydata;
run;

proc sgplot data=mydata;
vbox H.period / category=SessionIndex group=Rep
title="H.period Typing Speeds for Subject &amp;amp;subject.";
vbox DD.period.t / category=SessionIndex group=Rep
title="DD.period.t Typing Speeds for Subject &amp;amp;subject.";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 May 2023 09:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plotting-Component/m-p/874085#M38792</guid>
      <dc:creator>CrisJ</dc:creator>
      <dc:date>2023-05-05T09:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Component</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plotting-Component/m-p/874086#M38793</link>
      <description>&lt;P&gt;Its not clear to me what your question is. Could you state a specific thing or two you want help with?&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 09:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plotting-Component/m-p/874086#M38793</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-05T09:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Component</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plotting-Component/m-p/874088#M38794</link>
      <description>&lt;P&gt;Task: Create a set of box plots that make sense for this data. Choose two variables that are not subject/sessions/reps.&lt;/P&gt;&lt;P&gt;I tried to run the program but plots did not appear.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;options validvarname=V7;
proc import out = aa
datafile = "PW_typing"
dbms = csv
replace;
getnames = YES;
run;

%let subject = s020;
/* Create dataset for given subject */
data mydata;
  set aa;
  where subject = "s020";
  drop rep;
run;

/* Compute means for each session index */
proc means data=mydata mean;
var H.period DD.period.t UD.period.t H.t DD.t.i UD.t.i H.i DD.i.e UD.i.e H.e DD.e.five UD.e.five 
H.five DD.five.Shift.r UD.five.Shift.r H.Shift.r DD.Shift.r.o UD.Shift.r.o H.o DD.o.a UD.o.a H.a 
DD.a.n UD.a.n H.n DD.n.l UD.n.l H.l DD.l.Return UD.l.Return H.Return;
class sessionIndex;
run;

/* Add personalized title */
title "Means for subject s020";

/* Print results */
proc print data=mydata(obs=5);
run;
proc means data = mydata;
run;


&lt;STRONG&gt;&lt;U&gt;proc sgplot data=mydata;
    vbox H.period / category= sessionIndex title="H.period Typing Speeds for Subject &amp;amp;subject.";
    vbox DD.period.t / category= sessionIndex y=DD.period.t title="DD.period.t Typing Speeds for Subject &amp;amp;subject.";
run;&lt;/U&gt;&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My code:&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 09:42:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plotting-Component/m-p/874088#M38794</guid>
      <dc:creator>CrisJ</dc:creator>
      <dc:date>2023-05-05T09:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Component</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Plotting-Component/m-p/874093#M38795</link>
      <description>&lt;P&gt;Are there errors or warnings in the log? Whenever code isn't working you should check the log. If there are problems indicated in the log, please show us the log for the step (PROC or DATA step) that has the problem. We need to see all of the log for that step, every single line, not selected portions.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 09:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Plotting-Component/m-p/874093#M38795</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-05T09:55:48Z</dc:date>
    </item>
  </channel>
</rss>

