calc_relimp: Relative importance

Description Usage Arguments Value Author(s) Examples

View source: R/calc-relimp.R

Description

Relative importance

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
calc_relimp(
  spec,
  env,
  type = "lmg",
  family = gaussian,
  na.action = na.exclude,
  byrow = TRUE,
  ...
)

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

## S3 method for class 'calc_relimp'
plot(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)

Houyun Huang, Lei Zhou, Jian Chen, Taiyun Wei

Examples

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

## End(Not run)

houyunhuang/ggcor documentation built on July 22, 2020, 8:31 p.m.