Anyone with a SAS code to simulate the linear mixed model results, e.g. from the SAS code given below:
proc mixed data=LDH_univ method=reml covtest;
class CCI4 CHCI3 Time Flask ;
model Leakage=CCI4 CHCI3 CCI4*CHCI3 Time CCI4*Time CHCI3*Time CCI4*CHCI3*Time;
repeated Time / subject=Flask type=cs;
lsmeans CCI4 / pdiff cl adjust=tukey;
lsmeans CHCI3 / pdiff cl adjust=tukey;
run;
with the following SAS Proc Mixed output:
> Anyone with a SAS code to simulate the linear mixed model results
I assume you are asking for simulation code that will simulate data so that the parameter estimates in your output are the expected values for a regression of Leakage onto the indep variables.
You need more information about your data. The correlation of the independent variables with each other is important and should be modeled. You can use PROC FREQ to analyze the proportion of observations in each level of the class variables. Because of the interaction terms, you want to look at 1-way, 2-way, and 3-way interactions.
There are several sample simulation programs for repeated measures in Gibbs and Kiernan (2020), "Simulating Data for Complex Linear Models."
If I understand what you want then the steps I think you need are
1) Modify the code to include a STORE statement to create a file that holds the information the model created that can be used to score other data using the model results.
Something like
Store work.Ldhmixed ;
which place the information in the work library in a store name Ldhmixed. <loosely based on your data set name and the procedure>
2. Create a data set with the model variables having values you are interested in.
3. Use Proc PLM with the store created in proc mixed and the data set to create output.
Warning: You Class variables should only contain values from the original model. Classes that did not exist in the original data don't have any parameters in the model. Think of building model with Gender as a class and all the values are Male. You can't do much predicting(scoring) for Females.
> Anyone with a SAS code to simulate the linear mixed model results
I assume you are asking for simulation code that will simulate data so that the parameter estimates in your output are the expected values for a regression of Leakage onto the indep variables.
You need more information about your data. The correlation of the independent variables with each other is important and should be modeled. You can use PROC FREQ to analyze the proportion of observations in each level of the class variables. Because of the interaction terms, you want to look at 1-way, 2-way, and 3-way interactions.
There are several sample simulation programs for repeated measures in Gibbs and Kiernan (2020), "Simulating Data for Complex Linear Models."
Dear Rick
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.