Description Usage Arguments Value Examples

Generate disease stems from a vector of character strings.

1 2 3 4 5 6 7 |

`comorbid_column` |
A vector of character strings made up of 0s and 1s, or of factors coercible to character, all should be identical lengths.
If data contains elements with multiple states (i.e. where a character element may have a value of >1), then please see |

`max` |
The maximum number of combinations to be considered, if left as 'default' then a maximum based on code frequency will be calculated using |

`min_freq` |
Number between 0 and 1; minimum proportion of code combinations to be included in the stem. If |

`outcome_column` |
A numeric vector one if outcome occurred and zero if outcome did not occur. Should be the same length as |

`use_outcome` |
Logical if to use outcome variable for stem generation. |

data.frame with one row per unique `comorbid_string`

pattern and columns: `comorbid_string`

pattern, frequency of string pattern, positions within the pattern, stem and if frequency or outcome was used.

1 2 3 |

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.