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/