I have the following syntax to multiply each vector (independent variable) by the coefficient of the estimation:
forvalues i = 1(1)103 {
qui replace F_1isoXyea_`i'_1962 = F_1isoXyea_`i'_1962*exp(_b[F_1isoXyea_`i'_1962])
}
However, since there is collinearity some regressors are omitted from the regression, and therefore the syntax reports error.
[F_1isoXyea_2_1962] not found
r(111);
How can I adapt the syntax to do the multiplication by ignoring the cases in which the regressors were omitted from the regression?
I've attached the do-file to demonstrate the complete syntax.
Thanks in advance for your attention!
forvalues i = 1(1)103 {
qui replace F_1isoXyea_`i'_1962 = F_1isoXyea_`i'_1962*exp(_b[F_1isoXyea_`i'_1962])
}
However, since there is collinearity some regressors are omitted from the regression, and therefore the syntax reports error.
[F_1isoXyea_2_1962] not found
r(111);
How can I adapt the syntax to do the multiplication by ignoring the cases in which the regressors were omitted from the regression?
I've attached the do-file to demonstrate the complete syntax.
Thanks in advance for your attention!
Comment