Multivariate linear regression

  • #1
I have a model y= beta0 + beta1 x1 + beta2 x2 + eps, eps~N(0,1).

How to test hypothesis beta1=0 ? Is the same test for beta2=0?
 

Answers and Replies

  • #2
you can use a t test just like you do in simple linear regression,
except the degrees of freedom is n-3 not n-2,
You can test each variable separately.

you have to be careful about any conlcusions you make for example if x1 and x2 are highly correlated.
 
  • #3
Can someone help me to do this in SAS?
Is this correct?

PROC REG DATA = dataset;
MODEL y = x1 x2;
test x1=0 ;
test x2=0;
run;

How can I save p value from each test to a new data?
 

Related Threads on Multivariate linear regression

Replies
5
Views
179
Replies
5
Views
17K
  • Last Post
Replies
13
Views
4K
  • Last Post
Replies
3
Views
189
  • Last Post
Replies
7
Views
2K
Replies
6
Views
2K
Replies
11
Views
4K
Replies
2
Views
10K
Replies
1
Views
815
  • Last Post
Replies
4
Views
1K
Top