score_threshold: Score a Binary Threshold

Description Usage Arguments Details Value See Also Examples

Description

Scores a user specified threshold.

Usage

1
score_threshold(x, group, pos_class, cut, type = "upper")

Arguments

x

a numeric predictor.

group

binary grouping variable.

pos_class

group level for positive class.

cut

user specified threshold to divide x input.

type

direction of positive group. Options are "upper" (default) and "lower".

Details

Output quantities for false positive, true positive, and misclassification are percentages.

Value

See Also

accuracy_threshold, max_fp_threshold

Examples

1
2
3
4
x <- c(rnorm(100,0,1),rnorm(100,2,1))
group <- c(rep(0,100),rep(2,100))
score_threshold(x=x, group=group, pos_class=2, cut=1, type="upper")
score_threshold(x=x, group=group, pos_class=0, cut=1, type="lower")

ChrisDienes/SeaClass documentation built on May 18, 2019, 9:15 p.m.