Hi,
I am running several random effect panel models using the British Election Study. My data has 4 waves with more than 27,000 respondents in each wave. I am using Stata version 14.
euRefVote is my binary dependent variable.
I first ran some fixed effects panel models for time-varying variables and I am now running random effects panel models. The fixed effects models worked fine. However, Stata starts running the random effect model but then stops at Iteration 1.
I also tried running different random effect panel models with the same panel data to check whether it was one specific variable that caused the problem.Yet all of my variable showed the same problem of being 'concave'.
I also tried running a random effect panel model for another dataset I have, which worked fine.
This is the code I have been using:
xtset id wave
xtlogit euRefVote age, re
xtlogit euRefVote i.age gender marital1 i.household i.ethnicity, re
xtlogit euRefVote partyID RiskPoverty, re
On the display screen I get this result:
Fitting comparison model:
Iteration 0: log likelihood = -79595.428
Iteration 1: log likelihood = -78032.547
Iteration 2: log likelihood = -78032.037
Iteration 3: log likelihood = -78032.037
Fitting full model:
tau = 0.0 log likelihood = -78032.037
tau = 0.1 log likelihood = -75599.757
tau = 0.2 log likelihood = -73145.166
tau = 0.3 log likelihood = -70640.428
tau = 0.4 log likelihood = -68051.496
tau = 0.5 log likelihood = -65334.372
tau = 0.6 log likelihood = -62427.947
tau = 0.7 log likelihood = -59238.334
tau = 0.8 log likelihood = -55591.027
Iteration 0: log likelihood = -59239.613
Iteration 1: log likelihood = -50640.545 (not concave)
What could the problem be with my panel data?
Thanks!
Josefine
I am running several random effect panel models using the British Election Study. My data has 4 waves with more than 27,000 respondents in each wave. I am using Stata version 14.
euRefVote is my binary dependent variable.
I first ran some fixed effects panel models for time-varying variables and I am now running random effects panel models. The fixed effects models worked fine. However, Stata starts running the random effect model but then stops at Iteration 1.
I also tried running different random effect panel models with the same panel data to check whether it was one specific variable that caused the problem.Yet all of my variable showed the same problem of being 'concave'.
I also tried running a random effect panel model for another dataset I have, which worked fine.
This is the code I have been using:
xtset id wave
xtlogit euRefVote age, re
xtlogit euRefVote i.age gender marital1 i.household i.ethnicity, re
xtlogit euRefVote partyID RiskPoverty, re
On the display screen I get this result:
Fitting comparison model:
Iteration 0: log likelihood = -79595.428
Iteration 1: log likelihood = -78032.547
Iteration 2: log likelihood = -78032.037
Iteration 3: log likelihood = -78032.037
Fitting full model:
tau = 0.0 log likelihood = -78032.037
tau = 0.1 log likelihood = -75599.757
tau = 0.2 log likelihood = -73145.166
tau = 0.3 log likelihood = -70640.428
tau = 0.4 log likelihood = -68051.496
tau = 0.5 log likelihood = -65334.372
tau = 0.6 log likelihood = -62427.947
tau = 0.7 log likelihood = -59238.334
tau = 0.8 log likelihood = -55591.027
Iteration 0: log likelihood = -59239.613
Iteration 1: log likelihood = -50640.545 (not concave)
What could the problem be with my panel data?
Thanks!
Josefine
Comment