| overimpute | R Documentation |
Masks a fraction of observed values, re-imputes them, and computes RMSE to assess imputation quality.
overimpute(model_id, mask_frac = 0.1, m = 5L, seed = NULL, ...)
model_id |
A character model ID, or a fitted model object (list with
a |
mask_frac |
Numeric. Fraction of observed values to mask (default 0.1). |
m |
Integer. Number of imputations for the diagnostic (default 5). |
seed |
Integer or |
... |
Arguments forwarded to |
A list with rmse (named numeric vector) and mean_rmse.
## Not run:
df <- data.frame(X1 = rnorm(200), X2 = rnorm(200))
df$X1[sample(200, 40)] <- NA
fit <- midas_fit(df, epochs = 10L)
diag <- overimpute(fit, mask_frac = 0.1)
diag$mean_rmse
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.