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
VARNAME dialog elementDear All, While programming a dialog one can use an option numeric for the VARNAME dialog elements,…
Generating new variable from r-class command that produces multiple returns (as a result of using 'by:' command)Hello I would like some assistance with generating newvar [XIRR] from returned r-class command. I …
replacing data of two row in only one row.i have data like below Code: * Example generated by -dataex-. To install: ssc install dataex clear …
Generating dummy based on company classificationHi everyone, I am looking to create a dummy variable based on another dummy variable for an identif…
Question about using moving files to specific folder with the use of localsDear all, I cannot work out the following problem: I have an excel spreadsheet called datax with t…
Subscribe to:
Post Comments (Atom)
0 Response to Clustering standard errors with logistic regression for panel data
Post a Comment