Simulate longitudinal data

Accepted Solution Solved
Reply
Super Contributor
Posts: 303
Accepted Solution

Simulate longitudinal data

Hey, I wish to simulate the following longitudinal model, and help?

I wish to ask if you have a SAS code to simulate longitudinal data or where I could find it.

I just wish to simulate this: Y_it=apha_i + .5*X+ epsilon_it

Let t=be 4 time points

where Y_it denotes measure for subject i at time t

alpha_i is intercept for subject i(random effect)

X baseline covariates

epsilon is error term i at time t.

let\\


Accepted Solutions
Solution
‎09-15-2014 10:55 AM
SAS Super FREQ
Posts: 3,630

Re: Simulate longitudinal data

You can find it on p. 231-232 of Simulating Data with SAS (and similar ideas throughout Chapter 12).

View solution in original post


All Replies
Solution
‎09-15-2014 10:55 AM
SAS Super FREQ
Posts: 3,630

Re: Simulate longitudinal data

You can find it on p. 231-232 of Simulating Data with SAS (and similar ideas throughout Chapter 12).

🔒 This topic is solved and locked.

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

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