Description Usage Arguments Value
View source: R/simulate_missingness.R
Make plots for imputation result
1 2 3 4 5 6 7 8 9 10 | impute_quality_check(
filter_df,
active_df,
baseline_df,
var_name,
priority_miss_perc,
n_round,
seed,
imp_func
)
|
filter_df |
filtered passive data |
active_df |
active data |
baseline_df |
baseline data |
var_name |
passive measurement variable name |
priority_miss_perc |
Percentage of observations per subject to be labeled as missing;1)value between 0 and 1: same percentage for each subject;2)NA: automatically according to missing percentage of each subject |
n_round |
number of times to randomly sample observations to be labeled |
seed |
fix seed so that simulation results are reproduceable |
imp_func |
the function of imputation method, available options now: #1) missForest :my_missForest; #2) moving average of 7 days: seven_moving_everage |
a data frame with imputation quality measurement metrics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.