Panel data with binary dependent variable in R
Posted
by Abiel
on Stack Overflow
See other posts from Stack Overflow
or by Abiel
Published on 2010-05-10T15:36:26Z
Indexed on
2010/05/10
22:14 UTC
Read the original article
Hit count: 233
r
Is it possible to do regressions in R using a panel data set with a binary dependent variable? I am familiar with using glm for logit and probit and plm for panel data, but am not sure how to combine the two. Are there any existing code examples?
Thank you.
EDIT
It would also be helpful if I could figure out how to extract the matrix that plm() is using when it does a regression. For instance, you could use plm to do fixed effects, or you could create a matrix with the appropriate dummy variables and then run that through glm(). In a case like this, however, it is annoying to generate the dummies yourself and it would be easier to have plm do it for you.
Abiel
© Stack Overflow or respective owner