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
- /
- General Programming
- /
- Testing hypothesis

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

12-15-2014 09:43 PM

I use proc reg statement where the model is y=b1x1+b2x2+e. How can I test the hypothesis that B1 >= B2. The test statement examines linear equations only.

Accepted Solutions

Solution

12-15-2014
10:40 PM

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

12-15-2014 10:40 PM

In **proc reg**, use the statement

**test X2-X1;**

and divide the p-value by two (because you are doing a unilateral test). Now, if B1 < B2 and the p-value is significant, then the hypothesis B1 >= B2 is contradicted by your data. Otherwise, your hypothesis holds (i.e. it is not contradicted by your data).

PG

PG

All Replies

Solution

12-15-2014
10:40 PM

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

12-15-2014 10:40 PM

In **proc reg**, use the statement

**test X2-X1;**

and divide the p-value by two (because you are doing a unilateral test). Now, if B1 < B2 and the p-value is significant, then the hypothesis B1 >= B2 is contradicted by your data. Otherwise, your hypothesis holds (i.e. it is not contradicted by your data).

PG

PG