[R] define a new family (and a new link function) for gam in gam package

David Winsemius dwinsemius at comcast.net
Fri Sep 18 00:00:17 CEST 2009


On Sep 17, 2009, at 1:39 PM, Topi, Corrado wrote:

> Dear R list,
>
> is it possible to define a new family (and a new link function) for  
> gam in gam package? How?
>
> I read the help for gam, family, gam.model, make.link but I did not  
> find a solution.

Wood provides an example for negbin with alternate links in package  
mgcv;

library(mgcv)
?negbin
negbin  # produces the code

-- 
David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list