Code:
melogit condomless_spouse [pw=hiv05] || idhspsu:
Code:
Fitting fixed-effects model:
Iteration 0: log likelihood = -2.213e+11
Iteration 1: log likelihood = -2.213e+11
Iteration 2: log likelihood = -2.213e+11
Refining starting values:
Grid node 0: log likelihood = .
Grid node 1: log likelihood = .
Grid node 2: log likelihood = .
Grid node 3: log likelihood = .
(note: Grid search failed to find values that will yield a log likelihood value.)
Fitting full model:
initial values not feasible
One approach suggested here (https://www.stata.com/statalist/arch.../msg00906.html) is to fit a basic logit model and get the starting values therefrom. I fitted the model the following model, which seems to converge:
Code:
logit condomless_spouse sex [pw=hiv05]
mat a=e(b)
mat a1=(a,0)
xtmelogit condomless_spouse sex || idhspsu:,laplace from(a1, copy)
Code:
melogit condomless_spouse sex [pw=hiv05] || idhspsu:, laplace from(a1, copy)
Code:
invalid from() option;
option copy not allowed
Thanks - cY
0 Response to Initial Values Problem with melogit and xtmelogit
Post a Comment