CovariateWeights: Weights of Covariates

Description Usage Arguments Examples

Description

This function takes the regression object and calculates the relative importance of different covariates. The relative importance is only valid when the covariates are standardized.

Usage

1
CovariateWeights(Model, Rounding = 0.01, Exact = FALSE, Intercept = TRUE)

Arguments

Model

A "lm" or "glm" object.

Rounding

Desired rounding, default is up to 2 decimal places.

Exact

If Exact = TRUE, the function will return weights with the sum of exactly 100. Default is set to FALSE, to reduce time required for computation.

Intercept

Does the regression object have an intercept term? Default is set to TRUE.

Examples

1
CovariateWeights(RegressionModel, Rounding = 1, Exact = TRUE)

Then-Terence/LiteXploreR documentation built on May 18, 2019, 8:07 p.m.