BookmarkSubscribeRSS Feed
syd1717
Fluorite | Level 6

Hello everyone.

 

I have come across questions that are somehow even more challenging for me to understand.  The first question I am attaching my code that is giving me an output but I am not sure if it makes sense in terms of answering the questions.  I do not know anything about Tukey's test.

 

The second question, I lost my code, but I didn't have much to begin with because I do not know much about regression models on SAS.

 

Please send some critique/help!  Thank you in advance.

3 REPLIES 3
syd1717
Fluorite | Level 6

UPDATE:  I think I may have figured out Tukey's Test for Question 1, I used a One Way ANOVA.  Is that right?  I am attaching my code.  As for question 2, I am confused about the whole process besides inputting the data.

 

PaigeMiller
Diamond | Level 26

I (and many people) do not download and open attachments. Please include code in your message as text pasted into the window that appears when you click on the "running man" icon. Please include other parts of your document in your message as well.

--
Paige Miller
syd1717
Fluorite | Level 6

Here is my code:

 

TITLE "Hypothesis Test";
data responses;
input circuittype$ responsetime@@;
cards;
1 9 1 12 1 10 1 8 1 15
2 20 2 21 2 23 2 20 2 30
3 6 3 15 3 8 3 16 3 7
;
run;
 
TITLE 'Data';
proc print data = responses (obs=15);
run;
 
proc means data = responses N MEAN MEDIAN VAR;
class circuittype;
var responsetime;
run;
 
TITLE 'One Way ANOVA'
Title;
ods noproctitle;
ods graphics / imagemap=on;
 
proc glm data=WORK.RESPONSES plots(only)=(boxplot diagnostics);
class circuittype;
model responsetime=circuittype;
means circuittype / hovtest=levene welch plots=none;
lsmeans circuittype / adjust=tukey pdiff alpha=.01 plots=(meanplot diffplot);
run;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 498 views
  • 0 likes
  • 2 in conversation