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
- /
- Base SAS Programming
- /
- How to perform t test on slope in proc reg

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

06-02-2017 02:38 PM

Dear All,

I want to do a t-test on the slope of a simple linear regression.

**H0: slope=1 VS Ha: slope !=1;**

I tried the folowing code,"test predicted=1; ", but it performed the overall F test on slope=1 and intercept=0

proc reg data=test;

model observed=predicted;*test predicted=1; *

quit;

Thanks!!

Best wishes.

Accepted Solutions

Solution

06-07-2017
02:18 PM

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

06-07-2017 01:28 PM - edited 06-07-2017 01:29 PM

All Replies

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

06-02-2017 04:23 PM

It's not obvious why you are making the statement that the TEST command is testing "the overall F test on slope=1 and intercept=0 ", as far as I know, this is not true. Why do you think it is testing this and not testing slope=1?

I also am mystified by

model observed=predicted;

as this makes little sense to me.

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

06-07-2017 01:22 PM

Dear Paige,

Thank you for the response!

You are right, I should wrote

model observed=predicters;

maybe this is more reasonable?

As for the TEST command, the output shows a F-test. Isn't F-test come with ANOVA, and is an overall global test testing "slope=1 and intercept=0"?

Thank you!

Best wishes.

Solution

06-07-2017
02:18 PM

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

06-07-2017 01:28 PM - edited 06-07-2017 01:29 PM

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

06-07-2017 02:18 PM

Dear Paige,

Oh, I see!!

Thank you very much!

Best wishes.

Oh, I see!!

Thank you very much!

Best wishes.