Re: [R] comparing fit of cubic spline

From: Ben Bolker <bolker_at_zoo.ufl.edu>
Date: Mon, 21 May 2007 16:05:16 +0000 (UTC)

Thomas Reed <tom.reed <at> ed.ac.uk> writes:

>
> I want to compare the fit of a quadratic model to continuous data, with that
> of a cubic spline fit. Is there a way of computing AIC from for e.g. a GAM
> with a smoothing spine, and comparing this to AIC from a quadratic model?
  

  Why don't you try AIC() on each of the fitted models and see what happens? In general R can compute log-likelihoods and AICs for most fitted model objects ... If it doesn't work, you can post your simple example to the list and get more advice then ...

  Ben Bolker



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 21 May 2007 - 16:10:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 21 May 2007 - 16:31:00 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.