R/nomogram_shaps-data.R

#' Nomogram SHAP values using categorical predictors and binary outcome
#'
#' An example of a data frame for `feature_exp` argument in 
#' \code{\link{create_nomogram}} function, must only include feature 
#' explainability value per sample (i.e., SHAP value), where one column is 
#' available for each feature.
#'
#' @format A data frame with 16 rows and 4 columns:
#' \describe{
#'   \item{cyl.6}{A predictor with SHAP values.}
#'   \item{cyl.8}{A predictor with SHAP values.}
#'   \item{qsec.1}{A predictor with SHAP values.}
#'   \item{vs.1}{A predictor with SHAP values.}
#' }
#'
#' @source Computed by iml from a caret randomforest model using categorical 
#' predictors for examples in this package.
#' @keywords dataset
#' @name nomogram_shaps
'nomogram_shaps'

Try the rmlnomogram package in your browser

Any scripts or data that you put into this service are public.

rmlnomogram documentation built on April 4, 2025, 5:45 a.m.