BookmarkSubscribeRSS Feed
itsd
Calcite | Level 5
I have run a proc mixed regression analysis and I need to run some post-estimation commands to test whether the treatment had a non-zero impact for a certain racial group.

Specifically, say we have the (simplified) model Y = B0 + B1(Treatment) + B2(Black) + B3(Treatment*Black). I want to test if (B1-B3)=0. Which command would I use in SAS?

I have read the few guides on ESTIMATE, CONTRAST, and LSESTIMATE, but I don’t know which one to use nor what the values represent.
4 REPLIES 4
PaigeMiller
Diamond | Level 26

Let's suppose there are two treatment levels, and so the effect of treatment (your B1) also has two levels. If Black has two levels, then the effect of TREATMENT*BLACK (your B3) has 2*2 = 4 levels. So what does it mean to compare B1 with 2 levels with B3 which has four levels (via the subtraction B1 – B3) ? I suggest that the question as posed is not answerable.

 

... to test whether the treatment had a non-zero impact for a certain racial group.

 

Perhaps you are really interested in testing the effect of B3 to see if it is statistically different than zero? If that's it, then B3 can be tested to see if it is zero via the default output from PROC MIXED. You can also use the SLICE command that might provide additional information. ESTIMATE, CONTRAST and LSMESTIMATE seem not needed, in my opinion. 

--
Paige Miller
itsd
Calcite | Level 5
I already know that the interaction B3 is significant from the mixed analysis. I suppose I may have been wrong to say that I want test B1-B3=0, I think I might have meant B1+B3=0 (since I want to know if the interaction “cancels out” the effect of the treatment for that group). Does this make sense?
PaigeMiller
Diamond | Level 26

I have the same objection to B1 + B3 that I had to B1 – B3. 

 

I still think the SLICE command may be the tool you are looking for.

--
Paige Miller
jiltao
SAS Super FREQ

Are Treatment and Black continuous (or dummy) variables or are they in the CLASS statement? Can you send us your complete PROC MIXED code and the Class Level Information table from PROC MIXED output?

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 706 views
  • 1 like
  • 3 in conversation