VARIABLE: NAMES ARE hhid attitude health
rural c_insure log_inco gender age age2
spouse edu happy house cre_rest
pre_sav p_insure m_insure deposit
risk_hou fi_ratio inc_risk fund e1 ;
USEVARIABLES= p_insure health rural c_insure gender
age age2 spouse edu happy house cre_rest m_insure
deposit attitude log_inco inc_risk risk_hou;
CATEGORICAL = risk_hou;
CATEGORICAL = inc_risk;
CATEGORICAL = attitude;
ANALYSIS:
TYPE = GENERAL;
ESTIMATOR = ML;
bootstrap=2000;
MODEL:
risk_hou ON log_inco(b1);
risk_hou ON deposit(b2);
risk_hou ON inc_risk(b3);
risk_hou ON attitude(b4);
risk_hou ON p_insure(cdash);
risk_hou ON health rural c_insure gender
age age2 spouse edu happy house cre_rest
m_insure;
log_inco ON p_insure(a1);
log_inco ON health rural gender age age2 spouse
edu happy house cre_rest m_insure c_insure;
deposit ON p_insure(a2) ;
deposit ON health rural gender age age2 spouse
edu happy house cre_rest m_insure c_insure;
inc_risk ON p_insure(a3);
inc_risk ON health rural gender age age2 c_insure
spouse edu happy house cre_rest m_insure;
attitude ON p_insure(a4);
attitude ON health rural gender age age2 c_insure
spouse edu happy house cre_rest m_insure;
MODEL CONSTRAINT:
NEW(SDX SDM3 COVXM3 SDM4 COVXM4 pi adja3 adjb3 adjind3 adja4 adjb4
adjind4 ind1 ind2 tatal);
SDX = 0.37; !0.37
SDM3 = 0.824; !0.824
SDM4 =1.281 ; !1.281
COVXM3 =-0.006; ! -0.006
COVXM4 =0.014; !0.014
pi = 3.141592653589793;
adja3 = a3*SDX/(sqrt((a3*a3*SDX*SDX) + ((pi*pi)/3)));
adjb3 = b3*SDM3/(sqrt((cdash*cdash*SDX*SDX) + (b3*b3*SDM3*SDM3) +
(2*b3*cdash*COVXM3)));
adjind3 = adja3*adjb3;
adja4 = a4*SDX/(sqrt((a4*a3*SDX*SDX) + ((pi*pi)/3)));
adjb4 = b4*SDM4/(sqrt((cdash*cdash*SDX*SDX) + (b4*b4*SDM4*SDM4) +
(2*b3*cdash*COVXM4)));
adjind4 = adja4*adjb4;
ind1=a1*b1;
ind2=a2*b2;
totalind=ind1+ind2+adjind3+adjind4;
total=ind1+ind2+adjind3+adjind4+cdash;
OUTPUT:
STAND CINT(bcbootstrap);
*** ERROR in MODEL CONSTRAINT command
A parameter label or the constant 0 must appear on the left-hand side of a MODEL CONSTRAINT
statement. A parameter label must be declared in the MODEL command or with the NEW or PLOT
options in MODEL CONSTRAINT before it can be used. Problem with: TOTALIND
请问有哪位大神可以解答下,是什么地方错误啦?