Topi, Corrado
2009-Sep-17 17:39 UTC
[R] define a new family (and a new link function) for gam in gam package
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. Regards -- Corrado Topi Area 18,Department of Biology University of York, York, YO10 5YW, UK Phone: + 44 (0) 1904 328645, E-mail: ct529 at york.ac.uk
David Winsemius
2009-Sep-17 22:00 UTC
[R] define a new family (and a new link function) for gam in gam package
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
Corrado
2009-Sep-18 08:38 UTC
[R] define a new family (and a new link function) for gam in gam package
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