Dear SAS team
I got the following error massage :
70 TITLE " MULTIPLE IMPUTATION REGRESSION - MVN";
71 proc glm data = mi_mvn ;
72 modeL read = BSBM17A BSBM17B BSBM17C BSBM17D BSBM17E BSBM17F BSBM17G BSBM17H BSBM17I;
ERROR: Variable READ not found.
Although these variables exist, as following:
proc mi data= IMPUTATI.IMPORT nimpute=5 out=mi_mvn seed=54321;
var BSBM17A BSBM17B BSBM17C BSBM17D BSBM17E BSBM17F BSBM17G BSBM17H BSBM17I BSMMAT01 BSMMAT02 BSMMAT03 BSMMAT04 BSMMAT05;
run;
TITLE " MULTIPLE IMPUTATION REGRESSION - MVN";
proc glm data = mi_mvn ;
modeL read = BSBM17A BSBM17B BSBM17C BSBM17D BSBM17E BSBM17F BSBM17G BSBM17H BSBM17I;
by _imputation_;
ods output ParameterEstimates=a_mvn;
run;
quit;
Kindly, can you help me to resole this error.
Regards
@Abushanab_67 wrote:
Dear SAS team
I got the following error massage :
70 TITLE " MULTIPLE IMPUTATION REGRESSION - MVN";
71 proc glm data = mi_mvn ;
72 modeL read = BSBM17A BSBM17B BSBM17C BSBM17D BSBM17E BSBM17F BSBM17G BSBM17H BSBM17I;
ERROR: Variable READ not found.
When you run this code and get this error, it is because data set MI_MVN does not contain a variable named READ.
If you believe otherwise, and SAS disagrees with you, then in such cases I believe SAS. You have to look at the data set MI_MVN with your own eyes (or look at PROC CONTENTS) to see that it is not in there.
@Abushanab_67 wrote:
Dear SAS team
I got the following error massage :
70 TITLE " MULTIPLE IMPUTATION REGRESSION - MVN";
71 proc glm data = mi_mvn ;
72 modeL read = BSBM17A BSBM17B BSBM17C BSBM17D BSBM17E BSBM17F BSBM17G BSBM17H BSBM17I;
ERROR: Variable READ not found.
When you run this code and get this error, it is because data set MI_MVN does not contain a variable named READ.
If you believe otherwise, and SAS disagrees with you, then in such cases I believe SAS. You have to look at the data set MI_MVN with your own eyes (or look at PROC CONTENTS) to see that it is not in there.
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.