variable_type: Specify Variable Type

Description Usage Arguments

View source: R/variable_type.R

Description

Specify Variable Type

Usage

1
2
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.


jeremyrcoyle/sl3 documentation built on Feb. 3, 2022, 9:12 a.m.