https://github.com/cran/cutpointr
Revision d461e559d4a76b7fcbd728470ca12cce56d3ffab authored by Christian Thiele on 19 June 2020, 11:00:06 UTC, committed by cran-robot on 19 June 2020, 11:00:06 UTC
1 parent bbfd829
Tip revision: d461e559d4a76b7fcbd728470ca12cce56d3ffab authored by Christian Thiele on 19 June 2020, 11:00:06 UTC
version 1.0.32
version 1.0.32
Tip revision: d461e55
oc_manual.R
#' Set a manual cutpoint for use with cutpointr
#'
#' 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.
#'
#' @inheritParams oc_youden_normal
#' @param cutpoint (numeric) The fixed cutpoint.
#' @examples
#' cutpointr(suicide, dsi, suicide, method = oc_manual, cutpoint = 4)
#' @family method functions
#' @export
oc_manual <- function(cutpoint, ...) {
return(data.frame(optimal_cutpoint = cutpoint))
}

Computing file changes ...