calc_relimp: Relative importance

View source: R/calc-relimp.R

calc_relimpR Documentation

Relative importance

Description

Relative importance

Usage

calc_relimp(
  spec,
  env,
  type = "lmg",
  family = gaussian,
  na.action = na.exclude,
  byrow = TRUE,
  ...
)

## S3 method for class 'calc_relimp'
print(x, ...)

Arguments

spec, env

a data.frame object.

type

one of "lmg", "last", "first", "betasq", "pratt", "genizi" or "car".

family

a link function to be used in the model, see family.

na.action

a function which indicates what should happen when the data contain NAs.

byrow

a logical value, if TRUE, the 'spec' on the rows.

...

extra parameters.

x

a calc_relimp object.

Value

a calc_relimp object.

Author(s)

Hou Yun

Examples

## Not run: 
spec <- mtcars[c(1, 3, 4, 5)]
env <- mtcars[6:11]
calc_relimp(spec, env)

## End(Not run)

Hy4m/linkET documentation built on June 30, 2023, 7:39 p.m.