gavinsimpson / gratia

ggplot-based graphics and useful functions for GAMs fitted using the mgcv package
https://gavinsimpson.github.io/gratia/
Other
206 stars 28 forks source link

Add a function to extract the (inverse) link function from an estimated GAM #58

Closed gavinsimpson closed 4 years ago

gavinsimpson commented 4 years ago

It is useful to be able to extract the (inverse) link function from the family object stored in an estimated GAM.

Need:

Will need an argument parameter where the user can specify which parameter of the response distribution is required as we want to handle GAMLSS or distributional models. Default parameter is "mu".

Perhaps allow "location", "scale", "shape" as options to parameter as those are more generic in terms of the GAMLSS terminology.

gavinsimpson commented 4 years ago

As of 72954e8, all the currently-known families in mgcv are now covered by extract_link()