I am aware that after regress, I can use predict to generate a new predicted value. But how can I do it after multiple regressions? Here is the syntax.
regress equation1
predict fitted1
regression equation2
predict fitted2
But it looks like in Stata, it only keeps fitted2, and drops fitted1. Is there a way to keep both predicted values?
Related Posts with keep variables using predict after multiple regressions
Graphing based on a condition of longitudinal dataDear Statalist User, I have a problem regarding how to graph two scatter plots and their fitted lin…
Interaction terms in mixed-effects regressionHi statalisters ... I need some help to interpret the coefficients of some mixed-effects models in m…
Adaptive Gauss-Hermite QuadratureHi everyone, I am practising using the adaptive quadrature to programme the (log-) likelihood funct…
Test statistic Pesaran and SmithHello, I have been trying to check if there was already some code about the test statistic about po…
transforming then imputing or vice-versaHi all, I was wondering whether it is better to transform the data then impute the missing values or…
Subscribe to:
Post Comments (Atom)
0 Response to keep variables using predict after multiple regressions
Post a Comment