Hello,
I am performing multiple imputation in three step. Proc MI to impute. Proc Reg to perform regression analysis on all imputed data sets. Proc MI ANALYZE to draw inferences. My code is as written below.
Proc MI DATA= galtonmiss&var. NIMPUTE=2 out= mi_mvn&var. noprint;
var HW WW FAMINC;
run;
TITLE " MULTIPLE IMPUTATION REGRESSION - MVN";
proc glm data = mi_mvn&var.;
model FAMINC = HW WW;
by _imputation_;
ods output ParameterEstimates = a_mvn&var.;
run;
proc mianalyze parms=a_mvn&var.;
modeleffects intercept HW WW;
ods output ParameterEstimates = abc&var.;
run;
proc score data = work.importv score = abc&var. type = intercepts predict out = preds&var.;
var HW WW;
quit;
When i run this code it says variable HW and WW not found. And I think it's because of output from MIANALYZE. I checked its parameter estimates and i complered with normal regression analysis parameter estimates. Both tables are in different format. Can anyone help me ?
It's not clear what your question is here.
I have parameter estimates as output from PROC MI ANALYZE. I am using Proc Score to use this parameter estimates and validate. It is not working. In Proc score I am getting error variable HW and WW are missing.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.