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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.