BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jmoseley
Quartz | Level 8

The SAS homework is as follows. 

A researcher was interested in comparing three methods of dropout prevention in at-risk high school students: a structured work-study program, a peer-buddy program, and teacher mentoring program. Thirty at-risk students were randomly assigned to each of these three treatments at the beginning of their sophomore year. At the end of the year, the researcher noted how many students were still enrolled in school and how many appeared to have dropped out. These are the data that were obtained:

 

 

End of Year Status

Program

Still Enrolled

Not Enrolled

Work-Study

11

19

Peer Buddy

16

14

Teacher Mentor

20

10

 

What am I doing wrong in SAS?

 

input program $ persist dropout $;
datalines;
study 11 19
buddy 16 14
mentor 20 10
;
run;

 

proc anova data=case1;
class program;
model persistence dropout = program;
means / tukey;
run;

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

It sounds you need Cochran-Armitage Trend Test of PROC FREQ .

View solution in original post

7 REPLIES 7
Ksharp
Super User

It sounds you need Cochran-Armitage Trend Test of PROC FREQ .

jmoseley
Quartz | Level 8

SAS one way ANOVA is not completely solved.

 

The proc freq idea only deals with the procedure. It does not expain why the input codes are not being accepted by SAS.

jmoseley
Quartz | Level 8

SAS one way ANOVA is not completely solved. The input data is providing many errors

Ksharp
Super User

Your data should look like this :

data have;

input program $ persist dropout ;
datalines;
study 11 19
buddy 16 14
mentor 20 10
;
run;

 

And Trend Test is for the ordinal variable , but your PROGRAM is nominal variable, so change their position for different Trend Test.

But I think the original order in your data is looking good .

jmoseley
Quartz | Level 8
Hi KSharp,

Thanks for your insights. Another question? Why do you think I am not getting the TTest and probability result in my syntax?

Josie
Ksharp
Super User

TTest is testing the mean between two level(group), But your data doesn't have one group variable, it looks like a Contingecy Table .

jmoseley
Quartz | Level 8
Thank you very much KSharp. Much appreciated. J



##- Please type your reply above this line. Simple formatting, no
attachments. -##

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 7 replies
  • 1380 views
  • 0 likes
  • 2 in conversation