In order to do variable selection (in the traditional way), you have to run each
possible subset and then 'select' or order, aftwards.
to do this, it might be useful to use the formulation
formula = y ~ 1 + X
where X is a matrix of covariates. this will internally expanded into
y ~ 1 + x1 + x2 + ...
where x1 is the first column of X, etc.
there is no automtic way of doing this as of now.
you can use, f.ex
> combinat::combn(5,2)
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
[1,] 1 1 1 1 2 2 2 3 3 4
[2,] 2 3 4 5 3 4 5 4 5 5
to generate all subsets
> --
> You received this message because you are subscribed to the Google Groups "R-
> inla discussion group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
r-inla-discussion...@googlegroups.com.
> To view this discussion, visit
>
https://groups.google.com/d/msgid/r-inla-discussion-group/7f93a14c-4ff4-459a-893a-e3fb163332ban%40googlegroups.com
> .
--
Håvard Rue
hr...@r-inla.org