Dear all,
I am working on a dataset with time-series panel data, but I don't know which stata-code corresponds with what I want.
I know I need to enter: tsset id YEAR in order to set my panel and time variable, but then problems arise.
I want to cluster at firm-level (id) and perform an OLS regression. Later on i want to include year fixed effects, country-fixed effects and industry fixed-effects by using dummies (i.YEAR)
I thought I had to enter:
xtreg depvar indepvar controlvarlist, i (id) fe
or
xtreg depvar indepvar controlvarlist, fe vce (cluster id)
where depvar is my dependent variable, indepvar my independent and controlvarlist a number of control variables (some time varying, some non)
Then however my independent variable is omitted because of collinearity. This is a non time-varying variable, that might could have to do something with that.
Is there a way to check for the relationship between this dependent (time-varying) variable and this independent (non-time varying) variable?
I am working on a dataset with time-series panel data, but I don't know which stata-code corresponds with what I want.
I know I need to enter: tsset id YEAR in order to set my panel and time variable, but then problems arise.
I want to cluster at firm-level (id) and perform an OLS regression. Later on i want to include year fixed effects, country-fixed effects and industry fixed-effects by using dummies (i.YEAR)
I thought I had to enter:
xtreg depvar indepvar controlvarlist, i (id) fe
or
xtreg depvar indepvar controlvarlist, fe vce (cluster id)
where depvar is my dependent variable, indepvar my independent and controlvarlist a number of control variables (some time varying, some non)
Then however my independent variable is omitted because of collinearity. This is a non time-varying variable, that might could have to do something with that.
Is there a way to check for the relationship between this dependent (time-varying) variable and this independent (non-time varying) variable?

Comment