View source: R/impute_missing_score.R
impute_missing_score | R Documentation |
This function calculates imputed scores where item-level data is missing, and allows for the threshold of proportion of missing questions to be adjusted
impute_missing_score( .data, vars_to_impute, scale_name, missing_threshold = 0.2 )
.data |
A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). |
vars_to_impute |
vector of variables from which a score will be calculated/imputed |
scale_name |
output name of the scale being calculated |
missing_threshold |
maximum proportion of the scale questions allowed to be missing (i.e. the scale will not be calculated if the number of missing questions is greater than this value) |
toggle_warning |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.