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

Corrado ct529 at york.ac.uk
Fri Sep 18 10:38:29 CEST 2009


Dear David,

I am using gam in gam package (not in mgcv) .... it is possible to force gam 
in mgcv to behave like gam in gam package?

On Thursday 17 September 2009 23:00:17 David Winsemius wrote:
> 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



-- 
Corrado Topi

Global Climate Change & Biodiversity Indicators
Area 18,Department of Biology
University of York, York, YO10 5YW, UK
Phone: + 44 (0) 1904 328645, E-mail: ct529 at york.ac.uk




More information about the R-help mailing list