enrichwith (version 0.3.1)

get_dmodel_function.glm: Function to compute/extract a dmodel function

Description

Function to compute/extract a dmodel function

Usage

# S3 method for glm
get_dmodel_function(object, ...)

Arguments

object

an object of class glm orenriched_glm

...

currently not used

Details

The computed/extracted function has arguments

data

a data frame with observations at which to compute densities. If missing then densities are computed at the model frame extracted from the object (see glm)

coefficients

the regression coefficients at which the densities are computed. If missing then the maximum likelihood estimates are used

dispersion

the dispersion parameter at which the densities function is computed. If missing then the maximum likelihood estimate is used

log

logical; if TRUE, the logarithm of the density is returned