Specify Variable Type
variable_type(type = NULL, levels = NULL, bounds = NULL, x = NULL,
pcontinuous = getOption("sl3.pcontinuous"))
A type name. Valid choices include "binomial", "categorical", "continuous", and "multivariate". When not specified, this is inferred.
Valid levels for discrete types.
Bounds for continuous variables.
Data to use for inferring type if not specified.
If type
above is inferred, the proportion of
unique observations above which the variable is considered continuous.