Hello,
Thanks to everyone. I have a question on Proc mixed: I am using longitudinal/panel data. I have a random intercept model and the G matrix I am getting shows (only) row one for the first ID. Is this correct? How can I explain this?
Estimated G Matrix
Row Effect NEW_PIN Col1
1 Intercept 10001 0.1448
Please post the code that you are using.
Is your output from a table or from a data set?
You say "first.ID", is this for a computation that includes BY group processing? Does the log provide any information, such as the model did not converge except for the first BY group?
Hi, following is the code. x1, x2, x3 are time-variant; x1_mean x2_mean x3_mean are individual mean over time; z are time-invariant.
proc mixed data = reg_fin_1 noitprint PLOTS(MAXPOINTS= 20000000000) ;
class ID ;
by _imputation_ ;
model Y_i,t = x1_i,t x2_i,t x3_i,t x1_mean x2_mean x3_mean z1 z2 z3
/solution ddfm = bw residual ;
random intercept / subject = ID type = un solution g ;
ods output solutionF=mxparms3 ;
run;
I don't understand your syntax. What are the commas doing in the MODEL statement?
model Y_i,t = x1_i,t x2_i,t x3_i,t
Hello,
It seems that the G matrix only prints for the first observation. However, for the R matrix we can select which observations.
Thanks,
Rahid Mahmood
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.