Standardized formula maker
makeFormula is an internal biomod2 function that can be useful to help users to build easily some standardized formula used later by statistical models.
makeFormula(respName, explVar, type = "simple", interaction.level = 0, ...)
respName |
a |
explVar |
a |
type |
either 'simple', 'quadratic', 'polynomial' or 's_smoother' defining the type of formula you want to build |
interaction.level |
an |
... |
some additional arguments (see details) |
It is advised to give only a subset of explVar
table to avoid
useless memory consuming. If some explanatory variables are factorial
ones, you have to give a data.frame
for explVar
where
associated columns are define as factor
.
...
argument available values are :
a link[stats]{formula}
class object that can be
directly given to most of R statistical models.
Damien Georges
BIOMOD_ModelingOptions
,
link[stats]{formula}
##' create simulated data myResp <- sample(c(0, 1), 20, replace = TRUE) myExpl <- matrix( runif(60), ncol = 3, dimnames=list(NULL, c('var1', 'var2', 'var3')) ) ##' create a formula myFormula <- makeFormula( respName = 'myResp', explVar = head(myExpl), type = 'quadratic', interaction.level = 0 ) ##' show formula created myFormula
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.