get_info_mat_pieces: Get SE pieces

View source: R/info_matrix_functs.R

get_info_mat_piecesR Documentation

Get SE pieces

Description

Obtain the pieces needed to compute standard errors.

Usage

get_info_mat_pieces(em_fit)

Arguments

em_fit

a fitted GLM-EIV model, as outputted by run_em_algo_given_init.

Value

A list of pieces required to calculate the observed information matrix.

Examples

## Not run: 
dat <- get_quick_simulated_data(10000)
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)
info_mat_pieces <- get_info_mat_pieces(em_fit)

## End(Not run)

timothy-barry/glmeiv documentation built on Jan. 30, 2024, 3:46 p.m.