|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: how-to calculate beta, standardized coefficients using svy regress?
From |
Richard Williams <[email protected]> |
To |
[email protected] |
Subject |
Re: st: how-to calculate beta, standardized coefficients using svy regress? |
Date |
Tue, 03 Jul 2007 11:04:22 -0500 |
At 09:43 AM 7/3/2007, Steven Samuels wrote:
"findit spost9" will find the -spost9- package. It includes the -
listcoef- command, which will show betas standardized for X, for Y,
and for both.
listcoef seems to get broken in Stata 10. In Stata 9, this sequence
works fine:
webuse nhanes2f
svy: reg weight age
listcoef
But in Stata 10, the same commands give this error:
Unknown function index()
r(133);
I'll email Scott Long about it. I don't know if his programs need
updating or if there is a bug (with version control?) in Stata 10.
A little more tedious, but I think you could also standardize yourself:
webuse nhanes2f
svy: reg weight age
center weight age [aw=finalwgt] if e(sample), standardize
svy: reg c_weight c_age
You need to install -center- first (available from ssc). And, unless
you have no missing data, you may have to do the centering each time
for each regression.
The usual caveats about standardized coefficients being the work of
the Devil continue to apply. There may also be additional concerns
about using them with svy.
-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: [email protected]
WWW: http://www.nd.edu/~rwilliam
*
* 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/