Hi,
I am running the following model
bys industry year: reg y x
predict e, residuals
Here, if I use predict residuals as above, I don't get correct residuals by industry and year. I tried the following
bys industry year: predict e, residuals
but it is a wrong syntax.
Can anyone please help me?
Related Posts with Predicting residuals by industry and year
Multilevel regression analysis with plausible values as dependent variable (PISA)Hello everyone I am currently working with PISA data from 2018 and face a problem combining the “re…
mutiple imputation mixed effect model predicted valueDear members, I am analyzing a cross-sectional big dataset includes serval CVDs and demographic data…
bootstrapped indirect effects through multiple mediators using semDear statalisters, I am trying to run a mediation analysis with 2 indepvars, 5 mediators and 1 depv…
synthetic control missing dataHi all, I'm running a synth and there are no observations for any of my variables in some periods, …
Count the lenght in numeric observationsHello, I am working with a numeric variable that, on some occasions, uses 10 digits, and 8 in other…
Subscribe to:
Post Comments (Atom)
0 Response to Predicting residuals by industry and year
Post a Comment