Hi there
I work in the rodent learning field and have been trying to model the effect of different variables on how mice choose different response options. The dependent variable is the binary outcome of a trial (correct/incorrect), Genotype, Sex and Correction_Trial are binary variables. Correction_Trial is 0 if the previous trial is correct and vice versa so we would expect the observation with Correction_Trial==1 to decrease as the mice improve. The mice are trained for multiple trials per day and across many days. The identifier variable for the panel is the individual animals. We wanted to use a robust clustered estimator for the standard errors because we expect there to be heteroskedasticity in at least some of the variables.
The two models I have tried are xtlogit with vce(robust) (fig.1) and gllamm with cluster (Animal_id) (fig.2). As expected the point estimates for the effect size are very similar between the two models. The error estimates for genotype and sex are very different. My naive understanding is that both models use similar methods to generate clustered robust error estimates but why are they so different. I then tried bootstrapping from the clusters (fig. 3). This gives me errors very similar to the gllamm model. Any idea what's happening? Hope I've explained the question properly.
Keith
Fig. 1
Array
Fig. 2
Array
Fig. 3
Array
Related Posts with Clustered sandwich estimator gives very differ error in gllamm, xtlogit and xtlogit bootstrap
Remove space from file nameHello all, I am working with a bunch of excel files and wish to re-save them without any spaces in …
Mixed model with marginsHey all I have an mixed model equation that i want to graph with margins. There are two groups, two…
Looping too many variablesI did the following for too many variables: Variable 1: Code: bysort year Industry: egen Industry_…
Testing for validity in IV PoissonDear Statalisters, Is there a way one can test for the validity of instruments to be included in IV…
Add line to sts graph (kaplan meier)Im having trouble with overlaying two graphs. I have 3208 observations for my survival graph (curv…
Subscribe to:
Post Comments (Atom)
0 Response to Clustered sandwich estimator gives very differ error in gllamm, xtlogit and xtlogit bootstrap
Post a Comment