Here's the sample data: Link to a .csv file
To briefly explain this: grandparent is 1 if the individual is a grandparent and 0 if otherwise. m_age is the individual's age. m_work is the individual's working status and m_workhour is the individual's weekly working hours. child1_female indicates whether the individual's first child is female. child_number is the number of children that the individual has.
I try to use fixest package to do instrumental variable fix effects regression. The variable grandparent is endogenous and its instrument is child1_female. The outcome variable is m_work. However, if I add m_age as the exogenous regressor and use the following code:
ivgrandma<-feols(m_work~m_age|respondent_id+year|grandparent~child1_female,grandma)
It says that "The endogenous regressor 'fit_grandparent' have been removed because of collinearity (see $collin.var)."
I'm very confused about where the collinearity comes from.
m_age. – Ludwig Gershwin Apr 12 '23 at 01:24feols(m_work~1|respondent_id+year|grandparent~child1_female,grandma)– stats_model Apr 12 '23 at 01:25