Code:
_rmcoll x1 x2 x3 x4 x5 note: x5 omitted because of collinearity local variables `r(varlist)' display "`variables'" x1 x2 x3 x4 o.x5
Since I need to create a matrix for the remaining variable list using the command "mkmat", which does not allow factorial variables, I need to get rid of the "o.x5" in the variable list.
Code:
_rmcoll x1 x2 x3 x4 x5 note: x5 omitted because of collinearity local variables `r(varlist)' display "`variables'" x1 x2 x3 x4 o.x5 mkmat`variables', matrix(variables) factor-variable and time-series operators not allowed r(101);
Is there any way I can exclude the annoying factorial "o.x5" from my macro "`variables'"? I cannot do it manually since part of a Stata package.
0 Response to How to Getting Rid of The Factorial Variables after Deleting Multicolinear Variables Using "_rmcoll"
Post a Comment