glm_sim: Simulate from a GLM

glm_simR Documentation

Simulate from a GLM

Description

Simulate values from some generalized linear models

Usage

glm_sim(family, eta, phi, other_pars, link, quantiles = TRUE)

Arguments

family

vector of distribution families

eta

list (or matrix) of linear forms

phi

vector of dispersion coefficients

other_pars

list of other parameters for specified family

link

link functions for GLMs

quantiles

logical indicating whether to return quantiles

Value

a numeric vector of weights


rje42/causl documentation built on June 1, 2025, 2:50 p.m.