bartClassifDiag function

bartClassifDiag

bartClassifDiag

Displays a selection of diagnostic plots for a BART model.

bartClassifDiag( model, data, response, threshold = "Youden", pNorm = FALSE, showInterval = TRUE, combineFactors = FALSE )

Arguments

  • model: a model created from either the BART, dbarts, or bartMachine package.
  • data: A dataframe
  • response: The name of the response for the fit.
  • threshold: A dashed line on some plots to indicate a chosen threshold value. by default the Youden index is shown.
  • pNorm: apply pnorm to the y-hat data
  • showInterval: LOGICAL if TRUE then show 5% and 95% quantile intervals.
  • combineFactors: Whether or not to combine dummy variables (if present) in display.

Returns

A selection of diagnostic plots

  • Maintainer: Alan Inglis
  • License: GPL (>= 2)
  • Last published: 2024-07-24

Useful links