Nothing
## get some data
attach(longley)
## get large model data
md <- modelData(y=Employed,
X=
cbind(GNP,
Armed.Forces,
Population,
Year))
## do a stochastic search over the model space
res <- stochSearch(md)
res
## now the same, but with cubic splines:
## get large model data
md <- modelData(y=Employed,
X=
cbind(GNP,
Armed.Forces,
Population,
Year),
splineType="cubic")
## do a stochastic search over the model space,
## and choose a special start model
res <- stochSearch(md,
startModel=c(2, 2, 2, 2))
res
## and now for generalised response:
## get the model data
md <- glmModelData(y=as.numeric(Employed > 64),
X=
cbind(GNP,
Armed.Forces,
Population,
Year),
family=binomial)
## do a stochastic search over the model space,
## also with a special start model
res <- stochSearch(md,
startModel=c(0, 1, 2, 1),
chainlength=1000L,
computation=
getComputation(higherOrderCorrection=FALSE))
res
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.