Solved: [R] knots fixed in gam(), library(mgcv)
    Tord Snall 
    tord.snall at ebc.uu.se
       
    Mon May 26 11:12:48 CEST 2003
    
    
  
Dear all,
Berwin A Turlach kindly, quickly replied to my question. 
Solution:
>    else
>    fsp <- update.formula(formula, substitute( ~ . +s(d,kn|f),
list(kn=knots)))
>    fsp <- gam(fsp, data = data, ...)
cheers,
Tord
-----------------------------------------------------------------------
Tord Snäll
Avd. f växtekologi, Evolutionsbiologiskt centrum, Uppsala universitet
Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University
Villavägen 14			
SE-752 36 Uppsala, Sweden
Tel: 018-471 28 82 (int +46 18 471 28 82) (work)
Tel: 018-25 71 33 (int +46 18 25 71 33) (home)
Fax: 018-55 34 19 (int +46 18 55 34 19) (work)
E-mail: Tord.Snall at ebc.uu.se
Check this: http://www.vaxtbio.uu.se/resfold/snall.htm!
    
    
More information about the R-help
mailing list