Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
8 tasks done
gavinsimpson opened this issue Dec 16, 2019 · 1 comment
Closed
8 tasks done
Labels
enhancement New feature or request
Milestone

Comments

@gavinsimpson
Copy link
Owner

gavinsimpson commented Dec 16, 2019

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

Need:

  • inv_link() for the inverse of the link function
  • link() for the link function
  • family method for objects of class
    • "gam"
    • "gamm"
    • "bam"
    • "glm"
    • (handle gamm4() objects?)

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 gavinsimpson added the enhancement New feature or request label Dec 16, 2019
@gavinsimpson gavinsimpson reopened this Jan 19, 2020
gavinsimpson added a commit that referenced this issue Jan 23, 2020
@gavinsimpson
Copy link
Owner Author

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

@gavinsimpson gavinsimpson added this to the 0.4 milestone May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant