Skip to content

mgcv

3 messages · Thomas Nittner, Simon Wood, Agustin Lobo

#
Hi helpteam,

may you send me the exact syntax for getting the estimated degrees
of freedom for a gam?

I tried to do it by

 name <- edf(gam_name)

but this didn't work.

Thanks a lot,
greetings from Munich,

Thomas Nittner
#
- 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Hi!

I've installed the R version of Digital Unix 
from the tar file (/R-CRAN/bin/osf/osf4.0/tar/R-base-1.2.3.tar.gz)
as I do not have root permissions.

I've changed (in the file ..usr/local/bin/R) 
the variable R_HOME_DIR to
/usr/rn/alobo/R/usr/local/lib/R
as I have untared in /usr/rn/alobo/R

When I type R, I get:
Fatal error: The X11 shared library could not be loaded.
  The error was dlopen: cannot load
/usr/rn/alobo/R/usr/local/lib/R/bin/R_X11.so

The machine is running Digital UNIX V4.0F  (Rev. 1229)

What can I do?

Thanks

Agus

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._