make_cutoffs {afdx}R Documentation

Cut-off points for densities and fever

Description

Generate the cutoffs at every change of density in the fever, but first category is for density 0, and last category if possible have no subjects with no fever.

Usage

make_cutoffs(v.fever, v.density, add1 = TRUE)

Arguments

v.fever

numeric vector of 0/1 indicating fever or equivalent

v.density

numeric vector of values >= 0 indicating the density

add1

a logical value to indicate the category started with 1 is included

Value

a vector with the cutoff points

Examples

{
 make_cutoffs(malaria_df1$fever, malaria_df1$density, add1 = TRUE)
}

[Package afdx version 1.1.1 Index]