[R] gam and prior
Paul.Baverel at farmbio.uu.se
Tue Jun 3 18:57:19 CEST 2008
I am running a gam for covariate forward inclusions/ backward exclusions,
using the weight options as follow.
gam.object1<-gam(ET~1, data=nonp.dat, weights=PROBA)
step.object1<-step.gam(gam.object1, direction="both" , trace=T,
The problem is that I am not sure how to use this weight since my AIKAIKE
criteria goes really high as soon as I include the weights (that is, by the
way, a probability (very small number then)) and then, it includes all the
covariates in the scope while it should include only the one created in a
I heard about a prior.weights() option as well but using it does not affect
the results at all.
Some suggestions or help on how to use prior.weights or weights in gam or
even in glm will be very welcome as it is not really well documented.
More information about the R-help