Specify Variable Type

variable_type(type = NULL, levels = NULL, bounds = NULL, x = NULL,
  pcontinuous = getOption("sl3.pcontinuous"))

Arguments

type

A type name. Valid choices include "binomial", "categorical", "continuous", and "multivariate". When not specified, this is inferred.

levels

Valid levels for discrete types.

bounds

Bounds for continuous variables.

x

Data to use for inferring type if not specified.

pcontinuous

If type above is inferred, the proportion of unique observations above which the variable is considered continuous.