Description Usage Arguments Value Examples

View source: R/determine_default_combinations.R

Determine the maximum number of combinations to be included.

1 | ```
determine_default_combinations(comorbid_column, default = 2.5)
``` |

`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 |

Number of diagnosis counts that are present in the selected proportion of records (`default`

is 1 in 50).

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.