Dear all, I am running nnest command in stata to compare between two models. My commands are as follows:
reg lnprice lnlotsize beddummy1 beddummy2 beddummy3 airco bathrms
estimates store m1
reg lnprice lnlotsize bedrooms airco bathrms
estimates store m2
nnest m1 m2
Output: (variable m1 not found
r(111);
So I run the model stata generated
nnest _est_m1 _est_m2
Competing Models
--------------------------------------------------
M1 : Y = [lnprice]
X = [lnlotsize bedrooms airco bathrms]
M2 : Y = [lnprice]
Z = [_est_m1 _est_m2]
--------------------------------------------------
J test for non-nested models
--------------------------------------------------
Dist Stat P>Stat
H0:M1 / H1:M2 t(541) . .
H0:M2 / H1:M1 t(544) 26.71 0.000
--------------------------------------------------
Cox-Pesaran test for non-nested models
--------------------------------------------------
Dist Stat P>Stat
H0:M1 / H1:M2 N(0,1) . .
H0:M2 / H1:M1 N(0,1) . .
--------------------------------------------------
This is the output I get, where I don't get any statistics or p value for cox test and for j test, there is only one model's significance. Can anybody tell me what's going wrong in here, please?
reg lnprice lnlotsize beddummy1 beddummy2 beddummy3 airco bathrms
estimates store m1
reg lnprice lnlotsize bedrooms airco bathrms
estimates store m2
nnest m1 m2
Output: (variable m1 not found
r(111);
So I run the model stata generated
nnest _est_m1 _est_m2
Competing Models
--------------------------------------------------
M1 : Y = [lnprice]
X = [lnlotsize bedrooms airco bathrms]
M2 : Y = [lnprice]
Z = [_est_m1 _est_m2]
--------------------------------------------------
J test for non-nested models
--------------------------------------------------
Dist Stat P>Stat
H0:M1 / H1:M2 t(541) . .
H0:M2 / H1:M1 t(544) 26.71 0.000
--------------------------------------------------
Cox-Pesaran test for non-nested models
--------------------------------------------------
Dist Stat P>Stat
H0:M1 / H1:M2 N(0,1) . .
H0:M2 / H1:M1 N(0,1) . .
--------------------------------------------------
This is the output I get, where I don't get any statistics or p value for cox test and for j test, there is only one model's significance. Can anybody tell me what's going wrong in here, please?
Comment