BookmarkSubscribeRSS Feed
UnkaGee
Calcite | Level 5

Hi everyone, sorry if this is a bit basic, but I'm looking for some help with visualizing/plotting my data. I have a mixed model with one between-subjects variable (group) and two repeated measures variables (sz2Y sz4Y sz8Y / sz2N sz4N sz8N). The data show response time in milliseconds. The grouping variable is employee group... inspectors at either the NSA or TSA. The repeated measures variables are divided up by condition. Inspectors were required to detect a weapon in 3 different search conditions, involving 2, 4, or 8 items. In the "Y" condition inspectors one weapon was present. In the "N" condition no weapon was present. Here's the code I have so far. I would appreciate any help, thanks.

 

data a1;
input #1 subj group sz2Y sz4Y sz8Y sz2N sz4N sz8N;
cards;
1 1 600 640 640 710 730 730
2 1 580 620 630 715 730 720
3 1 610 650 680 710 740 740
4 1 620 640 690 700 750 690
5 1 630 650 690 690 700 690
6 2 700 760 910 940 940 940
7 2 720 780 900 930 920 930
8 2 710 760 890 910 940 950
9 2 710 770 900 900 920 950
10 2 710 770 900 900 920 950
;
title "Response Time Comparison Between NSA and TSA Employees";
proc means data = HW4;
by group;
run;
proc glm data = HW4;
class group;
model sz2Y sz4Y sz8Y sz2N sz4N sz8N = group/nouni;
repeated resptyp 2, setsiz 3 /summary;
run;
data NSA;
set a1;
if group =1 then output;
run;
data TSA;
set a1;
if group =2 then output;
run;

 

1 REPLY 1
PaigeMiller
Diamond | Level 26

You don't say what plotting you want, but PROC GLM has many built in plots available.

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=statug&docsetTarget=statu...

 

Also, take a look at using the STORE statement in PROC GLM, followed by plotting using PROC PLM.

 

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=statug&docsetTarget=statu...

 

--
Paige Miller

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 502 views
  • 2 likes
  • 2 in conversation