| imp_mean | R Documentation |
Calculates the element-wise mean across all stored imputations for a model.
imp_mean(model_id, ...)
model_id |
A character model ID, or a fitted model object (list with
a |
... |
Arguments forwarded to |
A data frame with the mean imputed values.
## Not run:
df <- data.frame(X1 = rnorm(200), X2 = rnorm(200))
df$X1[sample(200, 40)] <- NA
fit <- midas_fit(df, epochs = 10L)
midas_transform(fit, m = 10)
mean_df <- imp_mean(fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.