| relWeights | R Documentation |
Predictor selection.The total amount of variance accounted for by the model is divided amoong the predicator variables.
relWeights(fit, ...)
fit |
a models lm object. |
graphic for rredictor selection
JuG
form = as.formula("Fertility ~ .")
allsubreg(formula = form, data = swiss, nbest=6)
if(!require('MASS')){install.packages('MASS')}
library('MASS')
fit1 <- lm(Fertility ~ ., data = swiss)
relWeights(fit1, col="lightgrey",las=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.