https://github.com/cran/cutpointr
Raw File
Tip revision: 7e56c827a694247d212e9a0167a119f917e1f31b authored by Christian Thiele on 31 August 2018, 15:50:10 UTC
version 0.7.4
Tip revision: 7e56c82
oc_manual.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/oc_manual.R
\name{oc_manual}
\alias{oc_manual}
\title{Set a manual cutpoint for use with cutpointr}
\usage{
oc_manual(cutpoint, ...)
}
\arguments{
\item{cutpoint}{(numeric) The fixed cutpoint.}

\item{...}{To capture further arguments that are always passed to the method
function by cutpointr. The cutpointr function passes data, x, class,
metric_func, direction, pos_class and neg_class to the method function.}
}
\description{
This function simply returns \code{cutpoint} as the optimal cutpoint.
Mainly useful if bootstrap estimates of the out-of-bag performance of a
given cutpoint are desired, e.g. taking a cutpoint value from the literature.
}
\examples{
cutpointr(suicide, dsi, suicide, method = oc_manual, cutpoint = 4)
}
\seealso{
Other method functions: \code{\link{maximize_boot_metric}},
  \code{\link{maximize_gam_metric}},
  \code{\link{maximize_loess_metric}},
  \code{\link{maximize_metric}},
  \code{\link{maximize_spline_metric}},
  \code{\link{oc_mean}}, \code{\link{oc_median}},
  \code{\link{oc_youden_kernel}},
  \code{\link{oc_youden_normal}}
}
\concept{method functions}
back to top