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

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!

1 ACCEPTED SOLUTION

Accepted Solutions
JOLSAS
Quartz | Level 8

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!

View solution in original post

4 REPLIES 4
PGStats
Opal | Level 21

Add the statement

 

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

PG
JOLSAS
Quartz | Level 8

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!

PGStats
Opal | Level 21

Sorry, my error, you are right.

PG
JOLSAS
Quartz | Level 8

Thanks a lot!

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 4 replies
  • 1636 views
  • 0 likes
  • 2 in conversation