family(object) binomial(link=logit) gaussian() Gamma(link=inverse) inverse.gaussian() poisson(link=log) quasi(link=identity, variance=constant)
The following table summarizes the suitable pairings: binomial gaussian Gamma inverse.gaussian poisson quasi logit * * probit * * cloglog * * identity * * * * inverse * * log * * * 1/mu^2 * * sqrt * *
The function power can also be used to generate a power link function object for use with quasi; power takes an argument lambda.
Users can construct their own families, as long as they have compatible components having the same names as those, for example, of binomial. The easiest way is to use quasi with home-made link and variance objects; otherwise make.family can be used, or else direct construction of the family object. When passed as an argument to glm or gam with the default link, the empty parentheses () can be omitted. There is a print method for the class "family".
binomial(link = probit) # generate binomial family with probit link glm(formula, family = binomial) robust(gaussian) # create a robust version of the gaussian family gam(formula, family = robust(quasi(link = power(2)))) # the works!