Hi. I'm using Stata/SE 18.0 and has encountered a r(1400) error while running multilevel ordinal logistic regression with 2 levels. The data contains 30 predictor variables and about 29K obs.
The code is as follows:
meologit h_ousingsatisfaction a_age a_gender a_married a_children a_familysize a_beneficiaries a_education a_monthlyincome a_debt b_housemanageexpense b_houseprice b_constructionyear b_dwellingarea b_interiorquality b_indoorenvironmentlevel b_indoorsafetyclean c_neighborhoodrelation_mean c_schooldistrict_mean c_safetyaroundhouse_mean c_pedestriansafety_mean c_noisearoundhouse_mean c_cleannessaroundhouse_mean c_airpollutionaroundhouse_mean c_accesstonatural_mean c_accesstocommercial_mean c_accesstomedical_mean c_accesstopublic_mean c_accesstocultural_mean c_accesstotransportation_mean c_accesstoparking_mean || city_id: a_age a_gender a_married a_children a_familysize a_beneficiaries a_education a_monthlyincome a_debt b_housemanageexpense b_houseprice b_constructionyear b_dwellingarea b_interiorquality b_indoorenvironmentlevel b_indoorsafetyclean, cov(uns)
Fitting fixed-effects model:
Iteration 0: Log likelihood = -23005.961
Iteration 1: Log likelihood = -18039.269
Iteration 2: Log likelihood = -16071.316
Iteration 3: Log likelihood = -15925.584
Iteration 4: Log likelihood = -15923.856
Iteration 5: Log likelihood = -15923.854
Iteration 6: Log likelihood = -15923.854
Refining starting values:
Grid node 0: Log likelihood = 0
Fitting full model:
initial values not feasible
r(1400);
As could be seen, I was running the contextual model with both level 1 and 2 variables, but the same error also occurred in the random coefficient model.
The code is as follows:
meologit h_ousingsatisfaction a_age a_gender a_married a_children a_familysize a_beneficiaries a_education a_monthlyincome a_debt b_housemanageexpense b_houseprice b_constructionyear b_dwellingarea b_interiorquality b_indoorenvironmentlevel b_indoorsafetyclean c_neighborhoodrelation_mean c_schooldistrict_mean c_safetyaroundhouse_mean c_pedestriansafety_mean c_noisearoundhouse_mean c_cleannessaroundhouse_mean c_airpollutionaroundhouse_mean c_accesstonatural_mean c_accesstocommercial_mean c_accesstomedical_mean c_accesstopublic_mean c_accesstocultural_mean c_accesstotransportation_mean c_accesstoparking_mean || city_id: a_age a_gender a_married a_children a_familysize a_beneficiaries a_education a_monthlyincome a_debt b_housemanageexpense b_houseprice b_constructionyear b_dwellingarea b_interiorquality b_indoorenvironmentlevel b_indoorsafetyclean, cov(uns)
Fitting fixed-effects model:
Iteration 0: Log likelihood = -23005.961
Iteration 1: Log likelihood = -18039.269
Iteration 2: Log likelihood = -16071.316
Iteration 3: Log likelihood = -15925.584
Iteration 4: Log likelihood = -15923.856
Iteration 5: Log likelihood = -15923.854
Iteration 6: Log likelihood = -15923.854
Refining starting values:
Grid node 0: Log likelihood = 0
Fitting full model:
initial values not feasible
r(1400);
As could be seen, I was running the contextual model with both level 1 and 2 variables, but the same error also occurred in the random coefficient model.
Comment