variable_type: Specify Variable Type

View source: R/variable_type.R

Variable_TypeR Documentation

Specify Variable Type

Description

Specify Variable Type

Usage

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.


tlverse/sl3 documentation built on Nov. 18, 2024, 12:46 a.m.