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 -- Thomas Nittner Tel: ++49 89 2180 3197 Akademiestra?e 1 Fax: ++49 89 2180 5042 D - 80799 M?nchen http://www.stat.uni-muenchen.de -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 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.- sorry I've not (yet) written a function to extract this so you'll have to use:> gam_name$edfwhich 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.> gam_nameFamily: 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 ______________________________________________________________________> Simon Wood snw at st-and.ac.uk http://www.ruwpa.st-and.ac.uk/simon.html > The Mathematical Institute, North Haugh, St. Andrews, Fife KY16 9SS UK > Direct telephone: (0)1334 463799 Indirect fax: (0)1334 463748-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hello helpteam, I would like to generate graphics within a loop which then should be one file. For example, for each simulation I want to draw the estimated regression line; the resulting graphic should contain one line for each loop. Could you send me the syntax? Thanks a lot, greetings from Munich, Thomas Nittner -- Thomas Nittner Tel: ++49 89 2180 3197 Akademiestra?e 1 Fax: ++49 89 2180 5042 D - 80799 M?nchen http://www.stat.uni-muenchen.de -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thomas Nittner wrote:> > Hello helpteam, > > I would like to generate graphics within > a loop which then should be one file. > > For example, for each simulation I want > to draw the estimated regression line; > the resulting graphic should contain > one line for each loop. > > Could you send me the syntax?What about plot(...) for(...){ ... my.lm <- lm(...) abline(my.lm) } Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._