View source: R/info_matrix_functs.R
run_inference_on_em_fit | R Documentation |
Run inference on EM fit
run_inference_on_em_fit(em_fit, alpha = 0.95)
em_fit |
a fitted GLM-EIV model, as outputted by run_em_algo_given_init. |
alpha |
(1-alpha) confidence interval produced |
a data frame with columns variable, estimate, std_error, p_value, confint_lower, confint_higher
## Not run:
dat <- get_quick_simulated_data(1000)
em_fit <- run_em_algo_given_init(m = dat$m, g = dat$g, m_fam = poisson(), g_fam = poisson(),
covariate_matrix = dat$covariate_matrix, initial_Ti1s = dat$p, m_offset = NULL, g_offset = NULL)
se_table <- run_inference_on_em_fit(em_fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.