I am having a problem with -esttab -, after –gsem- to run negative binomial – gsem , family(nbinomial mean) link(log). I am using Stata 15.1 for Windows.
I run a series of negative binomial models using – gsem-. The models run correctly. When I use –esttab- to export the results, instead of the neat table typically produced by this command, the coefficients are all scrambled up and repeated. The problem ONLY occurs with the Negative Binomial model (please see below). --esttab- works fine with other types of models using --gsem--. I would really appreciate any help.
Below is a toy example.
Thanks in advanced,
Arkangel
/* Negative Binomial*/
webuse fish
quietly gsem(count <- child, family(nbinomial mean) link(log))
estimate store model1
quietly gsem(count <- child livebait , family(nbinomial mean) link(log))
estimate store model2
quietly gsem(count <- child livebait camper , family(nbinomial mean) link(log))
estimate store model3
quietly gsem(count <- child livebait camper persons , family(nbinomial mean) link(log))
estimate store model4
esttab model1 model2 model3 model4
Array
/* OLS */
webuse fish, clear
quietly gsem(count <- child, family(gaussian) link(identity))
estimate store model1
quietly gsem(count <- child livebait, family(gaussian) link(identity))
estimate store model2
quietly gsem(count <- child livebait camper, family(gaussian) link(identity))
estimate store model3
quietly gsem(count <- child livebait camper persons, family(gaussian) link(identity))
estimate store model4
esttab model1 model2 model3 model4
Array
/* Poisson */
webuse fish, clear
quietly gsem(count <- child, family(poisson) link(log))
estimate store model1
quietly gsem(count <- child livebait, family(poisson) link(log))
estimate store model2
quietly gsem(count <- child livebait camper, family(poisson) link(log))
estimate store model3
quietly gsem(count <- child livebait camper persons, family(poisson) link(log))
estimate store model4
esttab model1 model2 model3 model4
Array
/* Loigt */
webuse fish, clear
quietly gsem(count <- child, family(bernoulli) link(logit))
estimate store model1
quietly gsem(count <- child livebait, family(bernoulli) link(logit))
estimate store model2
quietly gsem(count <- child livebait camper, family(bernoulli) link(logit))
estimate store model3
quietly gsem(count <- child livebait camper persons, family(bernoulli) link(logit))
estimate store model4
esttab model1 model2 model3 model4
Array