Learn R Programming

BayesFactor (version 0.9.1)

enumerateGeneralModels: Function for generation of nested linear models

Description

Generate lists of nested models, given a model formula

Usage

enumerateGeneralModels(fmla, whichModels, neverExclude = NULL,
  includeBottom = TRUE)

Arguments

fmla
formula for the "full" model
whichModels
which subsets of models to generate
neverExclude
a character vector of terms to never remove
includeBottom
Include the base model containing only neverExclude terms

Details

This is a backend function not intended for users. It is exposed for third-party applications.