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
Reshape only a group of variables within a datasetDear Stata users, I would like to create a variable named region in one column. This is an example …
Same value for duplicatesHello, statalist! I am struggling with the replace the value for the same person. In the dataset, t…
bootstrap for panel dataDear All, I modify a code to test the significance of product of two coefficients from two panel dat…
How to include age as a dummy control in a fixed effect regression?Dear all, I have a problem understanding how i should specify the contol variable age in the follow…
interaction effect logistic regressionDear Stata users, I am working on a paper that includes a logistic regression (logistics command for…
Subscribe to:
Post Comments (Atom)
0 Response to Clustered sandwich estimator gives very differ error in gllamm, xtlogit and xtlogit bootstrap
Post a Comment