Projection Predictive Variable Selection
## S3 method for class 'brmsfit' varsel(object, ...) ## S3 method for class 'brmsfit' cv_varsel(object, ...)
object |
A |
... |
Further arguments passed to |
A vsel
object for which several methods are available
in the projpred package.
## Not run: # fit a simple model fit <- brm(count ~ zAge + zBase * Trt, data = epilepsy, family = poisson()) summary(fit) # perform variable selection without cross-validation vs <- varsel(fit) summary(vs) plot(vs) # perform variable selection with cross-validation cv_vs <- cv_varsel(fit) summary(cv_vs) plot(cv_vs) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.