dominance | R Documentation |
Runs a bootstrapped dominance analysis (aka relative weighting analysis or Shapley regression) via the relaimpo package and returns a dataframe of all relative importance values and the associated ranks.
dominance(
mod,
n_boot = 1000,
method = c("lmg", "pmvd", "last", "first", "betasq", "pratt", "genizi", "car"),
seed = 8675309,
...
)
mod |
Regression model input. |
n_boot |
Number of bootstrapped model samples to assess. |
method |
Method for assessing variable dominance, passed to relaimpo. |
seed |
Random seed. |
Dataframe with model method, bootstrapped sample number, predictor variable name, dominance values, and variable ranks.
## Not run:
mtcars |>
lm(mpg ~ cyl + wt + hp,
data = _) |>
dominance(n_boot = 500,
method = "car")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.