BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
kerrida
Calcite | Level 5

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!

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

Try

 

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

 

PG

View solution in original post

1 REPLY 1
PGStats
Opal | Level 21

Try

 

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

 

PG

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 2329 views
  • 1 like
  • 2 in conversation