Enrich objects of class link-glm

Description

Enrich objects of class link-glm with further derivatives of linkinv with respect to eta.

Usage

1
2
## S3 method for class ''link-glm''
enrich(object, with = "all", ...)

Arguments

object

an object of class link-glm

with

a character vector with the names of the components to enrich object with.

...

extra arguments to be passed to the compute_* functions

Details

The enrich.link-glm method supports logit, probit, cauchit, cloglog, identity, log, sqrt, 1/mu^2, inverse, as well as the power family of links.

Value

The object object of class link-glm with extra components. get_enrichment_options.link-glm() returns the components and their descriptions.

Examples

1
2
3
4
elogit <- enrich(make.link("logit"), with = "inverse link derivatives")
str(elogit)
elogit$d2mu.deta
elogit$d3mu.deta