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
- /
- PROC GLM: hypothesis testing

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
- Permalink
- Email to a Friend
- Report Inappropriate Content

05-25-2016 11:00 PM

Hi all,

I have such a proc glm test:

proc glm data=dataset1;

class f1 f2 f3 ;

model car = a b a*b f1 f2 f3 / solution;

run; quit;

Normally I would get individual t value and p value for each of the independent variables. But I also want to test this:

b1+b3=0.

b1 being the coefficient for variable a, and b3 being the coefficient for a*b

I've been doing some googling, and it seems that I need to use estimate or contrast statement? I didn't get the help I needed from googling. Anyone please help? Appreciate it!

Accepted Solutions

Solution

05-26-2016
04:26 PM

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

Posted in reply to PGStats

05-26-2016 12:54 AM

Hi PG,

Thanks for replying! But I have one question though.

Does "a 1 a*b -1" mean that I'm testing the hypothesis " b1-b3 = 0"?

Since I want to test if b1+b3=0, do I want to do the following:

estimate 'test' a 1 a*b 1?

Thanks!

All Replies

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

Posted in reply to JOLSAS

05-26-2016 12:19 AM

Add the statement

estimate 'test' a 1 a*b -1;

PG

Solution

05-26-2016
04:26 PM

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

Posted in reply to PGStats

05-26-2016 12:54 AM

Hi PG,

Thanks for replying! But I have one question though.

Does "a 1 a*b -1" mean that I'm testing the hypothesis " b1-b3 = 0"?

Since I want to test if b1+b3=0, do I want to do the following:

estimate 'test' a 1 a*b 1?

Thanks!

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

Posted in reply to JOLSAS

05-26-2016 11:45 AM

Sorry, my error, you are right.

PG

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

Posted in reply to PGStats

05-26-2016 04:26 PM

Thanks a lot!