Skip to content
Prev 12563 / 398502 Next

mgcv

- sorry I've not (yet) written a function to extract this so you'll have
to use:
which will yield an array of estimated degrees of freedom for each smooth
term in the model. To get the total edf you'll need to sum this array and
add on the d.f.s for any parameteric model terms (e.g. the 
constant). Total edf is also printed by print.gam(). e.g.
Family: gaussian 
Link function: identity 

Formula:
y ~ s(x0) + s(x1) + s(x2) + s(x3)

Estimated degrees of freedom:
 2.745596 3.172674 6.976935 1.537905   total =  15.43311 

GCV score:  4.252583 

Simon

  ______________________________________________________________________
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._