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
PVARSOC error(2001)I work on a PVAR model covering 8 countries with 88 observations. I using stata 15. I'm trying to de…
Fama MacBeth Regression with missing explanatory variablesI am trying to run a Fama-MacBeth regression with multiple independent variables. The dependent vari…
How to use Loocv?I am studying econometrics for a PhD and am more familiar with STATA, so I am currently using that f…
How to perform a kmeans cluster analysis on variables and not on individualsDear Members, I wish to perform a kmeans factor analysis on the database I briefly described here: …
Scatter plot with linear fit of two-period independent variable and one dependent variable. Dear All, I've data on y for period 1 and data on x for periods 4 and 5. I want to graphically dep…
Subscribe to:
Post Comments (Atom)
0 Response to Clustering standard errors with logistic regression for panel data
Post a Comment