inst/doc/cutpointr_user_functions.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(fig.width = 6, fig.height = 5, fig.align = "center")
options(rmarkdown.html_vignette.check_title = FALSE)
load("vignettedata/vignettedata.Rdata")

## ---- eval = FALSE------------------------------------------------------------
#  mean_cut <- function(data, x, ...) {
#      oc <- mean(data[[x]])
#      return(data.frame(optimal_cutpoint = oc))
#  }

## -----------------------------------------------------------------------------
library(cutpointr)
misclassification_cost

Try the cutpointr package in your browser

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

cutpointr documentation built on April 14, 2022, 1:06 a.m.