[R] Standardized Beta?

Jonathan Baron baron at cattell.psych.upenn.edu
Mon Mar 4 17:03:48 CET 2002


On 03/04/02 15:04, Fredrik Karlsson wrote:
>Greetings all!
>
>Got another question for you:
>
>When doing regression, is there a way of automatically obtaining the 
>standardized correlation coefficients?
>
>/Fredrik

Use scale() on all the variables, e.g.

lm(scale(y) ~ scale(x1) + scale(x2))

or else I standardize the variables first (using scale()).

Probably this is wrong, but it seems like the natural way to do
it, so, if it is wrong, it would be useful to know how to do it
correctly.

Jon Baron
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list