| combine | R Documentation |
Runs a GLM across all stored imputations and combines the results using Rubin's combination rules for multiple imputation inference.
combine(
model_id,
y,
ind_vars = NULL,
dof_adjust = TRUE,
incl_constant = TRUE,
...
)
model_id |
A character model ID, or a fitted model object (list with
a |
y |
Character. Name of the outcome variable. |
ind_vars |
Character vector of independent variable names, or |
dof_adjust |
Logical. Apply Barnard-Rubin degrees-of-freedom
adjustment (default |
incl_constant |
Logical. Include an intercept (default |
... |
Arguments forwarded to |
A data frame with columns term, estimate, std.error,
statistic, df, and p.value.
## Not run:
df <- data.frame(Y = rnorm(200), X1 = rnorm(200), X2 = rnorm(200))
df$X1[sample(200, 40)] <- NA
fit <- midas_fit(df, epochs = 10L)
midas_transform(fit, m = 10)
results <- combine(fit, y = "Y")
results
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.