# NOT RUN {
# iris data
model1 <- lm(Sepal.Length ~ Petal.Length + Petal.Width, iris)
beta(model1) # all three variables standardized
model2 <- lm(Sepal.Width ~ Petal.Width + Species, iris)
beta(model2, skip='Species') # all variables except Species standardized
# }
Run the code above in your browser using DataLab