induce_informative_missing | R Documentation |
Internal function: induce informative missing to sample data in the package to demonstrate how AutoScore handles missing as a separate category
induce_informative_missing( df, vars_to_induce = c("Lab_A", "Vital_A"), prop_missing = 0.4 )
df |
A data.frame of sample data. |
vars_to_induce |
Names of variables to induce informative missing in. Default is c("Lab_A", "Vital_A"). |
prop_missing |
Proportion of missing to induce for each
|
Assume subjects with normal values (i.e., values close to the median) are more likely to not have measurements.
Returns df
with selected columns modified to have missing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.