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
Any suggestions on addressing endogeneity while estimating Veblen Effect.How do I make sure that price coefficient is positive because the good is veblen or there is unadres…
Storing and graphing the lincom estimates (inside the loop)After running the regression, I did the lincom, and then stored the estimates (with local as well as…
An event study plot in STATA - multiple, staggered & temporary treatment with spillover effectsHello! Disclaimer - Apologies for any inconsistency in the posting format, I have read instructions…
Collapsing two variables that occur multiple timesHi StataList, I'm attempting to collapse two variables, "from_gstin" and "to_gstin", into a form wh…
Creating biological and step families with the new ADD Health Parent DataHello Statalist! I am fairly new at analyzing data and I am hoping someone will be able to help me …
Subscribe to:
Post Comments (Atom)
0 Response to Residuals in a panel data model
Post a Comment