Dear Stata Statisticians,
I have one unbalanced panel data in which N is more than 20,000 and T is 5. I have one model specification:
where Y is continuous variable;
X is continuous variable;
Z is also continuous variable;
X*Z is the interaction item of X and Z.
As far as I know, there is one command for fixed-effect quantile regression proposed by Powell (2015). When I code, for example:
I expect that this could work as the same as OLS with fixed-effect but I received the error message:
factor variables and time-series operators not allowed
r(101);
My question is " Should I manually create this interaction and then run the fixed-effect quantile regression again?" Thank you so much.
Best regards,
David
Reference:
Powell, David. 2015. Quantile Regression with Nonadditive Fixed Effects. RAND Labor and Population Working Paper.
I have one unbalanced panel data in which N is more than 20,000 and T is 5. I have one model specification:
Code:
Y=c+aX+bZ+dX*Z
X is continuous variable;
Z is also continuous variable;
X*Z is the interaction item of X and Z.
As far as I know, there is one command for fixed-effect quantile regression proposed by Powell (2015). When I code, for example:
Code:
qregpd y c.c_x c.c_z c.c_x#c.c_z, quantile(0.2) identification(id) fix(year) *where c_x is the centered x;c_z is the centered z.*
I expect that this could work as the same as OLS with fixed-effect but I received the error message:
factor variables and time-series operators not allowed
r(101);
My question is " Should I manually create this interaction and then run the fixed-effect quantile regression again?" Thank you so much.
Best regards,
David
Reference:
Powell, David. 2015. Quantile Regression with Nonadditive Fixed Effects. RAND Labor and Population Working Paper.
Comment