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

## R block diagonal matrix

hello all,

I want to get R block matrix for some specific subjects by specifying in the R section in repeated statement in proc mixed, all the matrixes are the same unstructured matrix, but the explanation on top of them are for another subjects which are for subjects19, 20, 21, 22, 23 and 24,while R matrix should be given for subjects 13, 14, 15, 16, 17 and 18,  i do not know the reason? Any help will be appreciated to understand the reason.

``````repeated  day / subject=subjects*week*trt  type=UN r=13,14,15,16,17,18;
run;``````

1 ACCEPTED SOLUTION

Accepted Solutions
SAS Super FREQ

## Re: R block diagonal matrix

Your subject effect is

`` subject=subjects*week*trt``

So r=13 is the 13th level of subjects*week*trt. What is your CLASS statement? How many levels are there for these CLASS variables?

3 REPLIES 3
SAS Super FREQ

## Re: R block diagonal matrix

Your subject effect is

`` subject=subjects*week*trt``

So r=13 is the 13th level of subjects*week*trt. What is your CLASS statement? How many levels are there for these CLASS variables?

Quartz | Level 8

## Re: R block diagonal matrix

Thanks for your reply, you pointed at the levels of variables in class statement and it helped me to find out the answer.

SAS Super FREQ

## Re: R block diagonal matrix

You might need to provide your data and your full PROC MIXED code, because the answer to your question would depend on both of them.

Discussion stats
• 3 replies
• 532 views
• 1 like
• 2 in conversation