Sign In
New User? Register
Statisticians_group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can set the sort order of messages? Just click on the link in the date column. Your preferences will be remembered, so you don't have to do it again when you return.

Messages

  Messages Help
Advanced
Introduction   Message List  
Reply | Forward Message #341 of 4071 |
Re: SAS Chi-squared and Fisher exact tests

Hi
the required SAS-code will be:

data ;
input vaccines placebo no_of_people;
cards;
Enter your data here

;
proc freq data=exe;
table vaccines*placebo / chisq fisher;
weight no_of_people;
run;

I hope this helps.

with regards,

Madan

--- In Statisticians_group@..., "Dora's Mail"
<hancock@t...> wrote:
> Thank you Sourav
> Today's question concerns SAS.
> I have data on vaccines and a placebo and I need to do a chi-
squared test
> and a Fisher exact test on the data. I have only 6 numbers. The
two large
> numbers for the number of people in the trial and then two small
numbers for
> each group for the two diseases that it is hoped the vaccine will
present.
> So I have a 2 x 3 table.
> I know very little about SAS. I do know about the 5 windows and
I've played
> around with the help files. I have successfully input my data so
that is
> okay.
> Can anyone get me started on how to do these tests.
> Thanks everyone
> Dora
>
>
> mam,
> send the question...
> ciao
> sourav





Fri Dec 2, 2005 2:38 pm

madan4331
Offline Offline
Send Email Send Email

Forward
Message #341 of 4071 |
Expand Messages Author Sort by Date

I'm delighted to find this group. My name is Dora. I have a degree in Maths and am a Chartered Accountant. I teach finance and multinational finance at a...
lovetostitch2001
lovetostitch...
Offline Send Email
Dec 1, 2005
3:26 pm

mam, send the question... ciao sourav __________________________________________________________ Enjoy this Diwali with Y! India Click here...
sourav podder
sourav_podder
Offline Send Email
Dec 1, 2005
8:39 pm

Thank you Sourav Today's question concerns SAS. I have data on vaccines and a placebo and I need to do a chi-squared test and a Fisher exact test on the data....
Dora's Mail
lovetostitch...
Offline Send Email
Dec 1, 2005
10:08 pm

Hi the required SAS-code will be: data ; input vaccines placebo no_of_people; cards; Enter your data here ; proc freq data=exe; table vaccines*placebo / chisq...
Madan Gopal Kundu
madan4331
Offline Send Email
Dec 2, 2005
2:39 pm

Hi the required SAS-code will be: data ; input vaccines placebo no_of_people; cards; Enter your data here ; proc freq data=exe; table vaccines*placebo / chisq...
Madan Kundu
madan4331
Offline Send Email
Dec 2, 2005
10:39 pm

Thank you Madan II will try it this afternoon and let you know how I get on. Dora Hi the required SAS-code will be: data ; input vaccines placebo no_of_people;...
Dora's Mail
lovetostitch...
Offline Send Email
Dec 3, 2005
9:00 am

When I type this in with my data I am getting two error messages. Part of my log is: ERROR: File WORK.EXE.DATA does not exist. 19 table vaccines*placebo /chisq...
Dora's Mail
lovetostitch...
Offline Send Email
Dec 3, 2005
10:08 pm

Hi Dora, I am sorry. Actually I did slight mistake. I forgot to write exe after data in the first line. The corrected program will be data exe; input vaccines...
Madan Gopal Kundu
madan4331
Offline Send Email
Dec 4, 2005
5:51 am

Thank you Madan. Worked perfectly. Your help is much appreciated. Dora ... From: Statisticians_group@... ...
Dora's Mail
lovetostitch...
Offline Send Email
Dec 4, 2005
8:22 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help