Undocumented function. Do not use directly
formula_setup(
formula = NULL,
response.name = NULL,
linear.name = NULL,
smooth.name = NULL,
family = NULL,
smooth.penalty = NULL,
num.knots = NULL,
offset.name = NULL,
interactions = F
)A formula to be parsed
The name of the response variable. Vector of two if
family = "binomial"
The names of the variables to be used as linear predictors
The names of the variables to be used as smoothers
The family describing the error distribution and link function
to be used in the model. A character string which can only be
"gaussian" (default), "binomial", "poisson" or
"cox". For family = "binomial", response can be
a vector of two and for family="cox", weights must
be provided (see details below).
The penalty used on the smoothers. Can be 1 or 2
Number of knots for each smoothers. Can be a single integer (recycled for each smoother variable) or a vector of integers the same length as the number of smoothers.
The name of the offset variable. NULL (default) if not provided
logical. Should interactions be included.