link: Utility function

View source: R/pgam.r

linkR Documentation

Utility function

Description

Apply the link function or its inverse to the argument.

Usage

link(x, link = "log", inv = FALSE)

Arguments

x

vector containing the predictor

link

string with the name of the link function

inv

if TRUE its inverse is applied

Details

This function is intended to port other link functions than \log{≤ft(\right)} to Poisson-Gamma Additive Models. For now, the only allowed value is "log".

Value

Evaluated link function at x values.

Note

This function is not intended to be called directly.

Author(s)

Washington Leite Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br

References

Harvey, A. C., Fernandes, C. (1989) Time series models for count data or qualitative observations. Journal of Business and Economic Statistics, 7(4):407–417

McCullagh, P., Nelder, J. A. (1989). Generalized Linear Models. Chapman and Hall, 2nd edition, London

See Also

pgam, formparser


pgam documentation built on Aug. 20, 2022, 1:06 a.m.

Related to link in pgam...