I have a panel data with unbalanced panel. I am testing a non-linear relationship. I tested a polynomial(quadratic) model for this purpose with following codes in stata.
xtreg y x x2 z, fe vce(cluster id)
z is a vector of control variables. I want to test if the polynomial model is better than a linear one by omitting x2 from the model. How I can do this?