Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Accessing beta coefficients after regress, beta


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: Accessing beta coefficients after regress, beta
Date   Mon, 12 Jan 2004 06:18:13 -0500

At 10:33 AM 1/12/2004 +0000, Neumayer,E wrote:
Hi,

does anyone know how to access the beta coeffients after regress, beta. I know how to access the standard coefficients, but not the beta coefficients. Thanks, Eric Neumayer

Dr. Eric Neumayer
One clunky way is to standardize the variables first and then run the regression with or without the noconstant option, e.g.

. egen zincome = std(income)
. egen zeduc = std(educ)
. egen zjobexp = std(jobexp)
. egen zblack = std(black)
. quietly reg zincome zeduc zjobexp zblack, noconstant
. mat list e(b)

e(b)[1,3]
zeduc zjobexp zblack
y1 .81641971 .3674517 -.11384265

If there are missing data that varies across cases, you would have to adjust these commands to reflect that, e.g. first drop the missing cases or use if parameters on the egen commands.

-------------------------------------------
Richard Williams, Associate Professor
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index