turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS Procedures
- /
- SAS one way ANOVA problem

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-23-2016 08:20 PM

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;

Accepted Solutions

Solution

02-23-2016
08:44 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-23-2016 08:33 PM

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

All Replies

Solution

02-23-2016
08:44 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-23-2016 08:33 PM

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-23-2016 08:50 PM

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-23-2016 08:52 PM

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-23-2016 08:56 PM

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 .

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-24-2016 12:11 AM

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

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

Josie

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-24-2016 03:57 AM

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-03-2016 01:40 AM

Thank you very much KSharp. Much appreciated. J

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

attachments. -##

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

attachments. -##