Re: [R] Multiple linear Regression: Standardized Coefficients

2012-02-15 Thread Kenn Konstabel
It's a bit dangerous to call them "betas" in this list. Standardized regression coefficients sounds much better :) A simple way is to first standardize your variables and then run lm again. lm(scale(height)~scale(age) + factor(sex)) # or, depending on what you want: lm(height~scale(age)+factor(

[R] Multiple linear Regression: Standardized Coefficients

2012-02-15 Thread David Studer
Hello everybody, Can anyone tell me, how to obtain standardized regression coefficients (betas) for my independent variables when doing a multiple linear regression? height<-c(180,160,150,170,190,172) sex<-c(1,2,2,1,1,2) age<-c(40,20,30,40,20,25) fit<-lm(height~age+sex) summary(fit) I already h