compute_theoretical_conditional_means: Compute theoretical conditional means

View source: R/theory_functs.R

compute_theoretical_conditional_meansR Documentation

Compute theoretical conditional means

Description

Computes the conditional means of the GLM-EIV model given the ground truth.

Usage

compute_theoretical_conditional_means(
  intercept,
  perturbation_coef,
  fam,
  covariate_matrix = NULL,
  covariate_coefs = NULL,
  offset = NULL
)

Arguments

intercept

intercept term

perturbation_coef

coefficient corresponding to perturbation

fam

family object describing response distribution

covariate_matrix

(optional) matrix of technical covariates

covariate_coefs

(optional) coefficients corresponding to technical covariates

offset

(optional) vector of offsets

Value

the scalar (or vector, if covariate_matrix is supplied) of conditional means


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