Hi
I am running a regression (using panel data) looking at the effect of income on food consumption and controlling for age. I am trying to determine if I need a squared term for age so wish to create a scatter plot of residuals against my independent variable as I have read this will show if there is a non- linear relationship- is this correct?
Therefore do I run:
xtreg fruvege age_dv, fe robust
predict fit, xbu
gen fit_2=fit^2
xtreg fruvege age_dv fit_2, fe robust
test fit_2=0
twoway (scatter fit_2 lnm)
in which case I get this:
[ATTACH=CONFIG]temp_13277_1548951433560_83[/ATTACH]
What does this mean? what am I doing wrong?
Thank you for any help.
Related Posts with Residuals in a panel data model
%e formatHi, I'm confused with the definition of %e format. I'm doing IV regression for panel data. I used …
How to proceed with variables with Unit Root or non stationarity using fixed effects estimation??I have a data set of N=280 and T =60. I did fisher test for each of my 9 variables. Only two have un…
Levels Problem in RegressionI hope you are doing well. I am facing a problem with levels in model specification. I have an inde…
None of the by options are working with twoway graphHi, I am trying to use the ixaxes iyaxes and imargin options for byopts in this twoway histogram pl…
sureg with standard errorsDear all, I use sureg to run regressions on 5 equations. The default from sureg command is t statis…
Subscribe to:
Post Comments (Atom)
0 Response to Residuals in a panel data model
Post a Comment