When I run my fixed effects regression model:
xtreg y var1... varn, fe cluster(id)
and predict residuals using:
predict u, e
or alternatively:
predict u, residuals
I get answers that differ somewhat, but not a ton. What is the difference between these two methods of predicting residuals and when should I use each?
Related Posts with What does the "e" option do with the predict command? How does it differ from the residuals option?
filling blank spaces for data in long formatMy data are repeated measures in long format as shown below. Since this is the same participant, How…
Pasting Stata codes into Microsoft WordHi everyone, I am trying to report my Stata code in the appendix of a manuscript which is written in…
Graph parallel trend for DID with multiple periods and csdidHi everyone, I am trying to do DID with multiple periods. My dataset is a panel data (from 1960 to…
convert a matrix to a column vector, and then output it to Excel fileHello, I need your help on matrix and Excel in Stata. I have a matrix m and would like to stack its …
Getting the value of kernel density function estimate at specific coordinateDear all, I estimate the kernel density of variable var1 and at the mean of var1 I would like to dr…
Subscribe to:
Post Comments (Atom)
0 Response to What does the "e" option do with the predict command? How does it differ from the residuals option?
Post a Comment