Programming the statistical procedures from SAS

Estimate statement to get a rate of change

Reply
Regular Contributor
Posts: 163

Estimate statement to get a rate of change

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 informationSmiley FrustratedAS 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?

Regular Contributor
Posts: 164

Re: Estimate statement to get a rate of change

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...

--------------
blog: papersandprograms.com
Ask a Question
Discussion stats
  • 1 reply
  • 78 views
  • 0 likes
  • 2 in conversation