generate_glm_data_sim: Generate glm data for simulation

View source: R/simulatr_functs.R

generate_glm_data_simR Documentation

Generate glm data for simulation

Description

A lower-level function to generate GLM-EIV data.

Usage

generate_glm_data_sim(
  intercept,
  perturbation_coef,
  perturbation_indicators,
  fam,
  covariate_matrix,
  covariate_coefs,
  offset,
  n,
  B
)

Arguments

intercept

intercept term

perturbation_coef

coefficient for perturbation

perturbation_indicators

an n times B matrix of perturbation indicators

fam

family object describing response

covariate_matrix

fixed matrix of covariates

covariate_coefs

coefficients for technical factors

offset

optional offset vector

n

the number of examples

B

the number of datasets to resample

Value

an n times B matrix of synthetic response data


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