I am trying to determine whether there is within person change in marijuana use over time in a multilevel model with repeated measures (days nested within people).
The variables I have are:
marijuana - mj use per day
id - person id
studyday - 1-7 days
time01 - study day as 0 1 with even increments in between
Will this proc mixed code answer that question?
proc mixed data = mjuse covtest noitprint;
class id studyday;
model marijuana = time01 / solution cl outp = intp outpm = intpm ;
random intercept time01/ subject = id type = un g s gcorr;
repeated /subject=id type = ar(1);
run;