[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Richard Williams <Richard.A.Williams.5@ND.edu> |

To |
statalist@hsphsun2.harvard.edu |

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,listcoef seems to get broken in Stata 10. In Stata 9, this sequence works fine:

and for both.

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: Richard.A.Williams.5@ND.Edu

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/

**Follow-Ups**:**Re: st: how-to calculate beta, standardized coefficients using svy regress?***From:*Richard Williams <Richard.A.Williams.5@ND.edu>

**References**:**st: how-to calculate beta, standardized coefficients using svy regress?***From:*Tim Hale <timhale@mindspring.com>

**Re: st: how-to calculate beta, standardized coefficients using svy regress?***From:*Steven Samuels <ssamuels@albany.edu>

- Prev by Date:
**Re: st: Trouble starting Stata 10 SE after successful installation** - Next by Date:
**Re: st: age as time scale in Cox regression** - Previous by thread:
**Re: st: how-to calculate beta, standardized coefficients using svy regress?** - Next by thread:
**Re: st: how-to calculate beta, standardized coefficients using svy regress?** - Index(es):

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