[R] comparing fit of cubic spline
Ben Bolker
bolker at zoo.ufl.edu
Mon May 21 18:05:16 CEST 2007
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
More information about the R-help
mailing list