unm_summary {unmconf} | R Documentation |
Generate synthetic data
Description
unm_summary()
produces result summaries of the results from the model fitting
function, unm_glm()
. The table of results are summarized from the MCMC draws of
the posterior distribution.
Usage
unm_summary(mod, data, quantiles = c(0.025, 0.975))
unm_backfill(data, mod)
unm_dic(mod)
Arguments
mod |
Output from |
data |
The data |
quantiles |
A numeric vector of quantiles. |
Value
A tibble
Examples
# ~~ One Unmeasured Confounder Examples (II-Stage Model) ~~
# normal response, normal confounder model with internally validated data
(df <- runm(20, response = "norm"))
(unm_mod <- unm_glm(
y ~ x + z1 + z2 + z3 + u1, family1 = gaussian(),
u1 ~ x + z1 + z2 + z3, family2 = gaussian(),
data = df
))
glm(y ~ x + z1 + z2 + z3, data = df)
coef(unm_mod)
jags_code(unm_mod)
unm_summary(unm_mod)
unm_summary(unm_mod, df) # true values known df
# impute missing values with model
unm_backfill(df, unm_mod)
[Package unmconf version 0.1.0 Index]