Miscellaneous Functions for Predictive Modeling

auc | Calculate the area under the curve of various plots including... |

boot_diff | Calculate the bootstrapped empiric two-sided p-value and... |

brier | Calculate the Brier Score for predicted probabilities against... |

bs_ci | Calculate the bias-corrected, basic bootstrapped confidence... |

bvd | Decompose the prediction error (mean-squared error) into bias... |

calib_plot | Produce a calibration plot for a set of predicted... |

cstat | Calculate the C-statistic for predicted probabilities against... |

ent | Calculate the mean Shannon entropy for the predicted... |

fnc | Calculate the false negative count of a vector of predicted... |

fpc | Calculate the false positive count of a vector of predicted... |

fscore | Calculate the F Score for predicted probabilities against a... |

ici | Calculate the integrated calibration index (ICI) for... |

lloss | Calculate the Log Lossfor predicted probabilities against a... |

make_perf_df | Take a list of performance metrics and return the observed... |

mc_brier | Calculate the multiclass Brier Score for predicted... |

mc_calib_plot | Produce a calibration plot for a set of predicted... |

mc_pr_plot | Produce a precision-recall plot for a set of predicted... |

mc_sbrier | Calculate the multiclass scaled Brier Score for predicted... |

nb | Calculate the net benefit of a model at a given probability... |

nb_plot | Produce a net benefit plot for a set of predicted... |

npv | Calculate the Negative Predictive Value for predicted... |

ocp | Calculate the optimism-corrected performance of a model using... |

ohe | One-hot encodes a single data.frame column or vector |

ohe.df | One-hot encodes all categorical variables in a data.frame |

ppv | Calculate the Positive Predictive Value for predicted... |

prg_plot | Produce a precision-recall Gain plot for a set of predicted... |

pr_plot | Produce a precision-recall plot for a set of predicted... |

roc_plot | Produce a receiver operator characteristic plot for a set of... |

rsq | Calculate the R^2 of a model for predicted probabilities... |

sbrier | Calculate the Scaled Brier Score for predicted probabilities... |

sens | Calculate the Sensitivity for predicted probabilities against... |

spec | Calculate the Specificity for predicted probabilities against... |

tnc | Calculate the true negative count of a vector of predicted... |

tpc | Calculate the true positive count of a vector of predicted... |

zol | Calculate the zero-one loss (i.e. 1 - accuracy) for predicted... |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.