中介分析,出现错误:
sgmediation Betaval, mv(A001000000a) iv(StaffNumber) cv(Fn05602)
string variables not allowed in option iv();
StaffNumber is a string variable
r(109);
然后为了修正,我用了destring 命令,出错如下:
destring StaffNumber,replace force
variable StaffNumber,replace not found
r(111);
.
. variable StaffNumber,replace not found
command variable is unrecognized
r(199);
.
. r(111);
command r is unrecognized
r(199);