BookmarkSubscribeRSS Feed
tbanh
Fluorite | Level 6

Hi Rick,

In your simulation book, your last example in the linear mixed model section is a multilevel model problem. Could you present an example with code for a repeated measures example? Using your example with weight loss, I have recreated a simulation where the errors are correct. However, when I introduce random components, it messes up the simulation. Thus, I tried looking at the last example concerning families and heights and used the code with a repeated measures example of mine. However, again, the random effects components did not average out to the parameters I specified. Any help is greatly appreciated as I have been struggling with this simulation for weeks now.

Thanks,

Tim

1 REPLY 1
Rick_SAS
SAS Super FREQ

The example that you speak of is a mixed model with correlated errors. I don't have any other examples like that lying around.  I suggest that you study a good book on mixed models. There might be an example like this in

Gelman and Hill (2007),  Data Analysis using regression and multilevel/hierarchical models.  Their R codes are easily translated into IML.

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!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

From The DO Loop
Want more? Visit our blog for more articles like these.
Discussion stats
  • 1 reply
  • 824 views
  • 0 likes
  • 2 in conversation