mad | R Documentation |
Compute variable-wise mean absolute differences (MAD) between original and imputed dataframes.
mad(original, imputed, round)
original |
A data frame or tibble with original values. |
imputed |
A data frame or tibble that has been imputed/completed. |
round |
Integer. Number of places to round MAD scores. Default set to 3. |
'mad_scores' as 'p' x 2 tibble. One row for each variable in original
, from 1 to 'p'. Two columns: first is variable names ('var') and second is associated MAD score ('mad') as percentages for each variable.
## Not run:
mad(original = original_data, imputed = imputed_data, round = 3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.