Learn R Programming

enrichwith (version 0.3.1)

get_qmodel_function.glm: Function to compute/extract a qmodel function

Description

Function to compute/extract a qmodel function

Usage

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

Arguments

object

an object of class glm orenriched_glm

...

currently not used

Details

The computed/extracted function has arguments

p

a vector of probabilities with length(p) equal to nrow(data) at which to evaluate quantiles

data

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

coefficients

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

dispersion

the dispersion parameter at which the quantiles are computed. If missing then the maximum likelihood estimate is used

log.p

logical; if TRUE, the logarithm of the probabilities is used

lower.tail

logical; if TRUE (default), probabilities are P[X <= x] otherwise, P[X > x]