Hi Spyros, I suggest that you borrow / buy the book that was written by the author of that package, and study it. It's "Generalized Additive Models: An Introduction with R". There's a lot of stuff going on in GAM fitting that it would be worth paying close attention to.
I hope that this helps, Andrew On Fri, Jan 18, 2013 at 12:45 AM, spyros <stsif...@bio.auth.gr> wrote: > Dear all, > I new to r and I would like your help. > I want to explore the patterns (unimodal, monotonically > increased/decreased) > of species richness~altitude using GAM in R. Although I run the gam > function > in mgcv package I do not know how to manually define knots and degrees of > freedom. > Any help would be greatly appreciated. > Spyros > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Explore-patterns-with-GAM-tp4655838.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > -- Andrew Robinson Director (A/g), ACERA Senior Lecturer in Applied Statistics Tel: +61-3-8344-6410 Department of Mathematics and Statistics Fax: +61-3-8344 4599 University of Melbourne, VIC 3010 Australia Email: a.robin...@ms.unimelb.edu.au Website: http://www.ms.unimelb.edu.au FAwR: http://www.ms.unimelb.edu.au/~andrewpr/FAwR/ SPuR: http://www.ms.unimelb.edu.au/spuRs/ [[alternative HTML version deleted]] ______________________________________________ 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.