Programming the statistical procedures from SAS

MIXED MODEL BY

Accepted Solution Solved
Reply
Super Contributor
Posts: 284
Accepted Solution

MIXED MODEL BY

I have this data;

A    B  T    order

1    1   1      1

2    4    2       1

5    9    3      1

.....................

1   2     1      2

2     5    2     2

1     2    3     2

-----------------

1   2     1      3

2     5    2     3

1     2    3     3

 

I want to fit a mixed model such that, I will have a model for each order. That is , three mixed model output.

I tried 

PROC MIXED data=vert METHOD=ML COVTEST by order;
CLASS T;
MODEL A = B /SOLUTION;
RANDOM INTERCEPT T /SUB=SubjectID TYPE=UN G GCORR;
TITLE2 'Random trend model with group effects';
RUN:

But it didnt run. Please help.


Accepted Solutions
Solution
a month ago
SAS Super FREQ
Posts: 3,304

Re: MIXED MODEL BY

Put BY statement on a separate statement:

 

PROC MIXED data=vert METHOD=ML COVTEST;

by order;
CLASS T;

...

View solution in original post


All Replies
Solution
a month ago
SAS Super FREQ
Posts: 3,304

Re: MIXED MODEL BY

Put BY statement on a separate statement:

 

PROC MIXED data=vert METHOD=ML COVTEST;

by order;
CLASS T;

...

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 66 views
  • 0 likes
  • 2 in conversation