Hello!
Excellent macro. I would like to create a macro for validate a multivariate mixed model. I tried to addapt this macro to a mixed model approach usind the leave-one-out method, but i did not get succesfull. Could you please to help me?.
Regards,
Julian
All you have to do is replace PROC REG in the macro with working code for some other PROC that performs a multivariate mixed model. Have you done that? Can you show us the code you tried?
However, I did not get the parameters of mixed equations.
What did you get?
In addition, I am trying to get a dataset with predicted and observed values, using the leave-one-out cross validation approach.
You need to create code that works and does what you want on your actual data set (forget the leave-one-out part). Once you have that, and it works properly, you should be able to plug it into the macro.
Yes, this happens because your code with PROC MIXED has not been modified to obtain the parameter estimates in a SAS data set. You need to get that correct, and then it should work in the macro loop as well. That's step one ... no macros ... no loop, just get the results you want from PROC MIXED.
I think its something like this
ods output solutionF=parms;
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 16. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.