get_kappa: Get the Tree-Based Kappa

Description Usage Arguments Value See Also

View source: R/tree-based_kappa.R

Description

Split x and y into k folds. For each fold; train a univariate tree and get the probalities for the hold-out. Then, obtain the optimal split and calculate Cohen's kappa on y and y hat.

Usage

1
get_kappa(x, y, k = 10)

Arguments

x

A numerical vector.

y

A binary variable that can be coerced to factor.

k

The number of folds to use in cross-validation.

Value

An object of class ggplot.

See Also

https://edwinth.github.io/blog/tree-based-kappa/


EdwinTh/thatssorandom documentation built on Jan. 18, 2020, 2:55 p.m.