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

2009-09-21 Thread Corrado
Dear Simon,

I want  a simple generalised additive model for regression which I can 
customise (force /define a certain basis, certain order for the splines, knots 
vector, generating new link functions, and force the regression through 0,0).

What do you suggest?  


On Friday 18 September 2009 16:06:31 Simon Wood wrote:
  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?

 -- not *exactly*, no. But what do you want to do? (i.e. what feature of
 `gam' do you need?)



-- 
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: ct...@york.ac.uk

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


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

2009-09-18 Thread Corrado
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: ct...@york.ac.uk

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


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

2009-09-18 Thread Simon Wood
 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?
-- not *exactly*, no. But what do you want to do? (i.e. what feature of `gam' 
do you need?)

-- 
 Simon Wood, Mathematical Sciences, University of Bath, Bath, BA2 7AY UK
 +44 1225 386603  www.maths.bath.ac.uk/~sw283

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


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

2009-09-17 Thread Topi, Corrado

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: ct...@york.ac.uk

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


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

2009-09-17 Thread David Winsemius


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

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.