SAS Procedures

Help using Base SAS procedures
BookmarkSubscribeRSS Feed
athomp06
Calcite | Level 5

Can anyone tell me what the following error means? 

 

WARNING: The R matrix depends on observation order within subjects. Omitting observations from
the analysis because of missing values can affect this matrix. Consider using a
classification effect in the RANDOM _RESIDUAL_ statement to determine ordering in the R
matrix.

 

I am attempting to run repeated measures on some data. The design was 20 animals blocked into light and heavy bodyweights, then assigned to 1 of 2 treatments withing each block. The animals had biopsies at 5 time points and gene expression was measured on 8 genes at each point. Attached is the SAS input as well as the output. I am not sure my denominator DF are correct and this may be associated with the error? Any help would be greatly appreciated.

1 REPLY 1
cici0017
SAS Employee

When you have missing observations on the RANDOM _RESIDUAL_ statement in GLIMMIX then the procedure generates the warning message. Considering change the RANDOM _RESIDUAL_ to -

 

Proc glimmix data = JessicaPCR;

Class ID TRT BLOCK DAY;

Model AMPK = TRT|DAY/ddfm = KR;

random intercept / subject=BLOCK;

random intercept / subject=ID*TRT;

random day /subject = ID*TRT type=arh(1) residual;

LSMEANS TRT|DAY/ pdiff lines;

nloptions tech=nrridg;

Run;

 

The above RANDOM statement should make note go away.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 3443 views
  • 1 like
  • 2 in conversation