View source: R/plot_importance.R
plot_importance | R Documentation |
Importance is currently based on the PRISM filter model. For elastic net (filter_glmnet). variables with non-zero coefficients are shown. For random forest variable importance (filter_ranger), variables are sorted by their p-values, and "top_n" will show only the "top_n" most importance variables (based on p-values).
plot_importance(object, top_n = NULL, ...)
object |
PRISM object |
top_n |
Show top_n variables only, default=NULL (show all) |
... |
Additional arguments (currently ignored). |
Plot (ggplot2) object
library(StratifiedMedicine) ## Continuous ## dat_ctns = generate_subgrp_data(family="gaussian") Y = dat_ctns$Y X = dat_ctns$X A = dat_ctns$A mod1 = filter_train(Y=Y, A=A, X=X) plot_importance(mod1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.