BookmarkSubscribeRSS Feed
Melk
Lapis Lazuli | Level 10

I am running a mixed model for a continuous measure with years as a continuous independent variable in the study. I also have treatment (1 or 0).

 

Here is my model:

 


proc mixed data=dat;
    class id tx (ref='0');
    model y=years|tx /s cl noint e;
    random intercept years/type=un sub=id;
        estimate 'Control' years 1 years*tx 0 1/cl;
        estimate 'Treatment' years 1 years*tx 1 0/cl;
run;

 

Here is the class level information:SAS Output

tx
21 0

But, my estimates are turning up opposite of what I expect. Are my estimate statements correct or can there be any other glitches I should be aware of?

1 REPLY 1
pau13rown
Lapis Lazuli | Level 10

specify a value for year, i'm guessing 1 is not a legit value. Maybe this helps: https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-write-estimate-statements-for-conti...

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
  • 1253 views
  • 0 likes
  • 2 in conversation