relWeights: Functions for predictor selection

View source: R/relWeights.R

relWeightsR Documentation

Functions for predictor selection

Description

Predictor selection.The total amount of variance accounted for by the model is divided amoong the predicator variables.

Usage

relWeights(fit, ...)

Arguments

fit

a models lm object.

Value

graphic for rredictor selection

Author(s)

JuG

Examples


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)



jgodet/utilitR documentation built on May 16, 2024, 12:01 p.m.