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.
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.
Director (A/g), ACERA
Senior Lecturer in Applied Statistics Tel:
Department of Mathematics and Statistics Fax: +61-3-8344 4599
University of Melbourne, VIC 3010 Australia
Email: [hidden email] Website: http://www.ms.unimelb.edu.au