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
- /
- Analytics
- /
- Stat Procs
- /
- Test to see if values for porpulation significantl...

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

01-19-2017 09:00 AM

Hello,

I am looking to test on sas-mainframe (V9, not sas-pc 9.4) if two populations are significatnly different.

I have one continuous variable for 2 populations and want to get a "p-value" in a simple output table to know how different the populations are. I think this shopuld be easily available in sas, but I cannot find it. Note: One of the two populations is 100 times bigger than the other one.

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

01-19-2017 09:07 AM - edited 01-19-2017 09:07 AM

There are many ways that two populations can differ. If you are looking for a Stats 101 test, you probably want the univariate t test, which tests whether the population means are different. You can use PROC TTEST for this. See the example in the documentation for comparing group means. To use the TTEST procedure, you will want to put the data in "long form" in a single data set, like this.

GROUP VALUE

1

1

...

2

2

2

...

If you don't know how to do that, write back and tell us the names of your data sets and variables.

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

01-19-2017 10:05 AM

Thanks for your answer. How can I easily also retrieve a table with the output statistics?

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

01-19-2017 10:20 AM

The tables will be displayed automatically. Do you mean that you want to create a data set of the results?

If so use the ODS OUTPUT statement to create a SAS data set from the table.

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

01-19-2017 10:31 AM

indeed. I just found it ODS OUTPUT STATISTICS=.... ;