Description Usage Arguments Value Examples
Input must be long format with subject id (SID), visit number (VN), and the column(s) to determine the incidence.
1 | desc_incidence(.data, .variables, prefix = NULL)
|
.data |
Dataset with SID, VN, and the variable(s) of interest. |
.variables |
Columns to apply the function to. |
prefix |
Add a prefix to the variable column names. |
Wide dataset with time across the top and various disease/disorder statuses below.
1 2 3 4 5 | example_data %>%
desc_incidence("DM")
example_data %>%
desc_incidence("DM", prefix = "Incid_")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.