| midas_transform | R Documentation |
Generates m imputed datasets from a fitted MIDAS model.
midas_transform(model_id, m = 5L, ...)
model_id |
A character model ID, or a fitted model object (list with
a |
m |
Integer. Number of imputations (default 5). |
... |
Arguments forwarded to |
A list of m data frames, each with 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)
imps <- midas_transform(fit, m = 10)
head(imps[[1]])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.