Quantcast
Channel: Statistics Help @ Talk Stats Forum - SAS
Viewing all articles
Browse latest Browse all 310

Proc mianalyze

$
0
0
I tried running proc mianalyze and an error message came up

ERROR: Variable osq060 is not in the COVB= data set.

Ive included the variable in my previous steps:

proc logistic data=em2_four;
class osq060 (ref='2') diq010 (ref='2') bpq020 (ref='2')ridageyr (ref='1')drxtcalc (ref='1');
model mcq160e (event='1')= osq060 diq010 bpq020 ridageyr drxtcalc / COVB;
run;
Proc MI data=em2_four seed= 555
minimum= 1 1 1 1 1 1
maximum= 2 2 2 2 2 2
round=1 out= em2_impute;
var mcq160e osq060 diq010 bpq020 ridageyr drxtcalc;
run;
proc logistic data=em2_impute;
class osq060 (ref='2') diq010 (ref='2') bpq020 (ref='2')ridageyr (ref='1')drxtcalc (ref='1');
model mcq160e (event='1')= osq060 diq010 bpq020 ridageyr drxtcalc / COVB;
by _imputation_;
ods output ParameterEstimates= lgsparms CovB=lgscovb;
run;
Proc mianalyze parms=lgsparms covb(effectvar=stacking)=lgscovb;
modeleffects intercept osq060 diq010 bpq020 ridageyr drxtcalc;
run;

I have to admit I'm a novice, so any help would be great.

Viewing all articles
Browse latest Browse all 310

Trending Articles