Description Usage Arguments Details Value References See Also Examples
Generate CCC and CCC subcategory flags and the number of categories.
1 |
data |
a |
id |
bare name of the column containing the patient id |
dx_cols, pc_cols |
column names with the diagnostic codes and procedure
codes respectively. These argument are passed to |
icdv |
ICD version 9 or 10 |
It is recommended that you view the codes defining the CCC via
get_codes
and make sure that the ICD codes in your data set are
formatted in the same way. The ICD codes used for CCC are character strings
must be formatted as follows:
*Do not* use decimal points or other separators
ICD 9 codes: Codes less than 10 should be left padded with 2 zeros. Codes less than 100 should be left padded with 1 zero.
See 'vignette("pccc-overview")' for more details.
A data.frame
with a column for the subject id and integer (0
or 1) columns for each each of the categories.
See pccc-package
for published paper on the topic of identifying
Complex Chronic Conditions
get_codes
to view the ICD codes used to define the
CCC. select
for more examples and details on how to
identify and select the diagnostic and procedure code columns.
1 2 3 4 5 6 7 8 9 10 11 12 13 | eg_data <- data.frame(id = letters,
dx1 = c(NA, NA, sample(get_codes(10)[["hemato_immu", "dx"]], 24)),
dx2 = c("A", sample(get_codes(10)[["gi", "dx"]], 25)),
dx3 = LETTERS,
pc1 = c("B", sample(get_codes(10)[["cvd", "pc"]], 25)),
pc2 = LETTERS,
other_col = LETTERS)
ccc(eg_data,
id,
dx_cols = dplyr::starts_with("dx"),
pc_cols = dplyr::starts_with("pc"),
icdv = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.