Statalist The Stata Listserver


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

st: RE: Standardizing a variable and adjusting for subgroups


From   "Ben Jann" <[email protected]>
To   <[email protected]>
Subject   st: RE: Standardizing a variable and adjusting for subgroups
Date   Tue, 17 Jan 2006 23:06:46 +0100

Try the -center- package from SSC. After installing the 
package (-ssc install center-), type

 . bysort school: center zgrade, standardize

ben

. ssc install center
> -----Original Message-----
> Hi,
> 
> I have a standardized variable, zgrade, wich denotes the grade point
> average
> for a sample of college graduates. Just recently I found out that this
> variable's overall mean value (i.e. zero) varies between the five
> diiferent
> schools that the graduates attended. Is it possible to make a new
> standardized variable that also "adjusts" for these school differences
> without diasaggregating the file into five sub-files (i.e. five
schools)
> and
> appending them afterwards?
> 
> Best regards,
> 
> Christer

*
*   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