News

9.1 Linear Regression 9.1.1 Review of the basics The lm function in R constructs—as its name implies—a linear model from data. Recall that a linear model is of the form Y = β0+β1X1+...+βnXn Y = β 0 + ...
A conceptually straightforward way to get standardized coefficients is to run a normal linear regression on standardized variables. The scale() function standardizes a vector of values so that it has ...