Programming the statistical procedures from SAS

TEST statement in proc surveyreg

Accepted Solution Solved
Reply
Learner
Posts: 1
Accepted Solution

TEST statement in proc surveyreg

I am trying to figure out how the TEST statement could be employed to test for the equality of the coefficients in the proc surveyreg procedure. For instance, if the model is as follows:

 

proc surveyreg data=input;

model DEP= X1 X2 X3 X4 /solution;

run;

 

Now, I want to formally test whether the coefficients for X2 and X3 are significantly different from each other, or if their sum is equal to 0. I tried various combinations, such as

 

proc surveyreg data=input;

model DEP= X1 X2 X3 X4 /solution;

test X2 + X3;

run;

 

 

(none seem to work); 

 

 

How can I perform such tests? Or is it some other statement I should be looking at?

 

Thanks!


Accepted Solutions
Solution
‎11-17-2015 04:01 AM
Respected Advisor
Posts: 4,606

Re: TEST statement in proc surveyreg

[ Edited ]

Try

 

Estimate 'X2-X3' X2 1 X3 -1;
Estimate 'X2+X3' X2 1 X3 1;

 

PG

View solution in original post


All Replies
Solution
‎11-17-2015 04:01 AM
Respected Advisor
Posts: 4,606

Re: TEST statement in proc surveyreg

[ Edited ]

Try

 

Estimate 'X2-X3' X2 1 X3 -1;
Estimate 'X2+X3' X2 1 X3 1;

 

PG
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 276 views
  • 0 likes
  • 2 in conversation