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 problem at university T-Test(?)

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

10-21-2008 07:29 AM

Hi!

We are group of students at Stockholm University and we are supposed to do some calculations with SAS. We don't really know how to solve the problem so we thought that we might can get some help here.

We got over the point where we did the dataline thing. We have two varaibels. Sex and attidute towards a building project. We have to estimate the proportion towards the building project. We also have to examinate if the proportion of the attidude is different for men and women according to the building project.

The population is 101 men and 109 women so we know that we have to calculate it with something like:

(x-y)/s but we don't know how to do that with SAS.

We would be really greatful for some help...

Thomas and the rest of the group.

We are group of students at Stockholm University and we are supposed to do some calculations with SAS. We don't really know how to solve the problem so we thought that we might can get some help here.

We got over the point where we did the dataline thing. We have two varaibels. Sex and attidute towards a building project. We have to estimate the proportion towards the building project. We also have to examinate if the proportion of the attidude is different for men and women according to the building project.

The population is 101 men and 109 women so we know that we have to calculate it with something like:

(x-y)/s but we don't know how to do that with SAS.

We would be really greatful for some help...

Thomas and the rest of the group.

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

Posted in reply to deleted_user

10-21-2008 09:29 AM

First of all, this is not a t-test. It is a comparison of two binomial proportions. You might want to look that up in a statistics text.

How to do this in SAS? Well, that's a very broad question, and not knowing how far you have gone already, I can't really be terribly specific. Look in the documentation for PROC FREQ for comparing two proportions.

How to do this in SAS? Well, that's a very broad question, and not knowing how far you have gone already, I can't really be terribly specific. Look in the documentation for PROC FREQ for comparing two proportions.

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

Posted in reply to Paige

10-21-2008 01:25 PM

Well we are in the middle of the first term, so we didn't get that long. There are more variabels by the way... Now it looks like that: (inkomst = income, inställning_bygge = attitude towards the building project).

data work.inl2;

input sex age inkomst installning_bygge;

datalines;

1 34 25022.65 1

*more datalines*

;

run;

Then we tried something like that:

proc sort data=work.inl2;

by sex;

run;

proc means data=work.inl2 CLM mean std stderr;

var sex;

freq installning_bygge;

by sex;

But the result we got wasn't what we wanted. We have to finish it until Thursday and really no one knows how to do it...

If you could give us just one way to solve that problem we would thankfully take it.

data work.inl2;

input sex age inkomst installning_bygge;

datalines;

1 34 25022.65 1

;

run;

Then we tried something like that:

proc sort data=work.inl2;

by sex;

run;

proc means data=work.inl2 CLM mean std stderr;

var sex;

freq installning_bygge;

by sex;

But the result we got wasn't what we wanted. We have to finish it until Thursday and really no one knows how to do it...

If you could give us just one way to solve that problem we would thankfully take it.

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

Posted in reply to deleted_user

10-21-2008 02:14 PM

As I said before, this is not a t-test (unless your description of the problem is wrong). It is a comparison of two proportions, which can be done via a chi-squared test.

proc freq data=inl2;

tables sex*installning_bygge/chisq;

run;

proc freq data=inl2;

tables sex*installning_bygge/chisq;

run;

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

Posted in reply to Paige

10-21-2008 04:54 PM

Thanks for the help. I just hope that my description of the problem was right...