search for: getallterm

Displaying 2 results from an estimated 2 matches for "getallterm".

Did you mean: getallterms
2011 Feb 04
1
GAM quasipoisson in MuMIn
...r example is: # Example with gam models (based on "example(gam)") require(mgcv) dat <- gamSim(1, n = 500, dist="poisson", scale=0.1) gam1 <- gam(y ~ s(x0) + s(x1) + s(x2) + s(x3) + (x1+x2+x3)^2, family = poisson, data = dat, method = "REML") cat(dQuote(getAllTerms(gam1)), "\n") # include only models with smooth OR linear term (but not both) for each variable: dd <- dredge(gam1, subset=(!`s(x1)` | !x1) & (!`s(x2)` | !x2) & (!`s(x3)` | !x3)) But I'm not sure at all how to apply these instructions to my data My formula is...
2011 Feb 04
0
GAM quasipoisson in MuMIn - SOLVED
...gam)") > > require(mgcv) > > > > dat <- gamSim(1, n = 500, dist="poisson", scale=0.1) > > > > gam1 <- gam(y ~ s(x0) + s(x1) + s(x2) + s(x3) + (x1+x2+x3)^2, family = > poisson, data = dat, method = "REML") > > > > cat(dQuote(getAllTerms(gam1)), "\n") > > > > > > # include only models with smooth OR linear term (but not both) for each > variable: > > > > > > dd <- dredge(gam1, subset=(!`s(x1)` | !x1) & (!`s(x2)` | !x2) & (!`s(x3)` | > !x3)) > > > But I'm n...