determine_default_combinations: Determine maximum combinations

Description Usage Arguments Value Examples

View source: R/determine_default_combinations.R

Description

Determine the maximum number of combinations to be included.

Usage

1
determine_default_combinations(comorbid_column, default = 2.5)

Arguments

comorbid_column

A vector of character strings made up of 0s and 1s, or of factors coercible to character, all should be identical lengths.

default

A number representing what proportion of diagnostic counts should be included . i.e. if 1 in 100 records have four or more diagnoses, but 3 in 100 have three or more, then the selected maximum combinations would be 3 if the default (2.5) is maintained.

Value

Number of diagnosis counts that are present in the selected proportion of records (default is 1 in 50).

Examples

1
2
3
comorbid_column <- c('00010', '01000', '01110', '11101')

determine_default_combinations(comorbid_column)

AJFOWLER/comorbidgroupr documentation built on May 11, 2021, 6:01 a.m.