Hello, this is my first time using Statalist, so I apologise in advance for any mistakes.
I was wondering if I should use clustered standard errors when running a logistic regression on panel data (with fixed effects). I don't see any examples of people doing this elsewhere on Statalist. However, if it were linear regression, I would have to cluster my standard errors with this panel data.
I am using the British Election Study panel data. Each individual responds to one or more waves of the survey, which are the time variable. I am asking whether various attitudes affect the likelihood that individuals will vote for the Labour Party. My code (with clustered standard errors) is as follows:
clogit notVoteLab immigLibLab econWorse i.education i.partner i.religion i.wave, group(id) vce(cluster id)
Meanwhile, without clustered SEs, I would use this code:
xtlogit notVoteLab immigLibLab econWorse i.education i.partner i.religion i.wave, fe
Additionally, I'm wondering if it makes sense to introduce wave (i.e. time variable) fixed effects?
Thank you for any help and let me know if I need to provide more or different information.
Related Posts with Clustering standard errors with logistic regression for panel data
Extracting First Character in a String that Satisfies a ConditionHello, My data contains in each row: (1) a string variable of different lengths ("String") (2) a n…
Generate random value stataDear collegues, I'm working on a consumer survey. In this survey, we asked to consumers to rank the…
Alternative-specific constant equal to nest in nested logitDear all, I am using a nested logit model to analyze a discrete choice experiment. I have one nest …
marginal effects multinomial logit modelAfter the estimation, I used margins, dydx(*) command to compute the marginal effect,, I then use ou…
How to use command cem to get the exact results from command kmatch?I want to compare whether the results of user-command Code: cem and Code: kmatch are the same. Ho…
Subscribe to:
Post Comments (Atom)
0 Response to Clustering standard errors with logistic regression for panel data
Post a Comment