calc_relimp | R Documentation |
Relative importance
calc_relimp(
spec,
env,
type = "lmg",
family = gaussian,
na.action = na.exclude,
byrow = TRUE,
...
)
## S3 method for class 'calc_relimp'
print(x, ...)
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 |
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. |
a calc_relimp object.
Hou Yun
## Not run:
spec <- mtcars[c(1, 3, 4, 5)]
env <- mtcars[6:11]
calc_relimp(spec, env)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.