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

st: Re: automatic mean centering.

From   Jeffrey Simons <[email protected]>
To   <[email protected]>
Subject   st: Re: automatic mean centering.
Date   Thu, 26 Aug 2004 07:11:36 -0500

> All,
> I'm interested in re-running old models by mean-centering all my
> continuous variables for comparison, as well as obtaining meaningful
> intercept values. At the same time, I wish to include dummy variables
> which, for obvious reasons, would not be mean-centered.
> Now I know how to do this manually, as we all do:
> . gen splodge = spludge-100
> where 100 is the mean of SPLUDGE. But I'm interested to know if
> there's a
> quicker way, especially if I have a _lot_ of continuous variables to
> mean-centre.
> Having explored the help files for -xi- and Mitchell and Ender's -
> xi3-
> (which IS downloadable via SSC, unlike -renvars-!), neither routine
> automatically creates mean-centered variables. Searching -findit-
> _and_the archive turned up nothing and nothing relevant respectively.
> If anyone has any ideas, I'd be keen to hear them. Ta!
I have a ado program and dlg file called mcenter  that does this. I'd be
happy to send it to anyone interested.

Jeffrey Simons

*   For searches and help try:

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