formulae: Formulae from variable combinations

Description Usage Arguments Value

View source: R/utils.r

Description

Build the formulae (as strings) from variable names

Usage

1
2
3
4
5
6
7
8
formulae(
  formula,
  dep = NULL,
  vars = NULL,
  nullmodelterm = "1",
  minsize = 1,
  maxsize = NULL
)

Arguments

formula

formula with all the terms (beyond optimal model)

dep

name of the dependent variable. If the formula is specified, this argument is not considered.

vars

character vector with the names of the independent variables (wihtout nullmodel term). If the formula is specified, this argument is not considered.

nullmodelterm

to specify in case of an always required fixed term (should not be included in the vars)

minsize

minimum size of the formula (number of independent variables)

maxsize

maximum size of the formula (number of independent variables). NULL means unrestricted.

Value

character vector hold the strings of the generated formulae.


pezzacolori/boris-r-misc documentation built on Sept. 14, 2021, 1:46 a.m.