Hi,
I am running a model Y=beta0+beta1*X1+beta2*X2+beta3*X3+...+betan*Xn. After running the model command, Stata automatically drops some covariates because of colinearity. I want to get the final covariates which are left in the model. What I did is something like this.
. reg y x1 x2 x3 x4 x5
. matrix beta = e(b)
. global covariates : colfullnames beta
Suppose x2 was dropped because of colinearity.
It gives me a global as
y:x1 y:x3 y:x4 y:x5 y:_cons
How can I remove "y:" in the global so that I have a global as "x1 x3 x4 x5 _cons"?
Thank you very much!
Haiyong
IMPORTANT WARNING: This email (and any attachments) is only intended for the use of the person or entity to which it is addressed, and may contain information that is privileged and confidential. You, the recipient, are obligated to maintain it in a safe, secure and confidential manner. Unauthorized redisclosure or failure to maintain confidentiality may subject you to federal and state penalties. If you are not the intended recipient, please immediately notify us by return email, and delete this message from your computer.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/