I'm using Proc Mixed to build a model (see code below) and I would like to split the data into training and validation so I can see how well the model works on predicting data it has not seen. I found that proc glm allows data to be split into different fractions, but I wonder how to use both sets of code? Does proc glm select just split the data and then I run proc mixed on the different fractions separately? Thanks for the help.
proc mixed data=ttnc_subsetsort PLOTS=RESIDUALPANEL(UNPACK) RATIO;
class hyb ntrt pd loc pass rep;
model tncV12log =hyb ntrt pd ntrt*hyb pd*hyb ntrt*pd / residual;
random loc rep(loc) loc*ntrt loc*hyb ;
lsmeans hyb ntrt pd hyb*ntrt / pdiff=all cl adjust=tukey;
title1 'Fit TNC V12 Model with Factors';
run;
This will give you a great start on doing resampling (from @Rick_SAS )
https://blogs.sas.com/content/iml/tag/bootstrap-and-resampling
and señor @Ksharp wrote this which is for Logistic regression but ought to work for PROC MIXED as well with minor modifications.
This will give you a great start on doing resampling (from @Rick_SAS )
https://blogs.sas.com/content/iml/tag/bootstrap-and-resampling
and señor @Ksharp wrote this which is for Logistic regression but ought to work for PROC MIXED as well with minor modifications.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.