warn_if_continuous: Warn if continuous

View source: R/manual_stratify.R

warn_if_continuousR Documentation

Warn if continuous

Description

Throws an error if a column is continuous

Usage

warn_if_continuous(column, name, force, n)

Arguments

column

vector or factor column from a data.frame

name

name of the input column

force,

a boolean. If true, warn but do not stop

n,

the number of rows in the data set

Details

Not meant to be called externally. Only categorical or binary covariates should be used to manually stratify a data set. However, it's hard to tell for sure if something is continuous or just discrete with real-numbered values. Returns without throwing an error if the column is a factor, but throws an error or warning if the column has many distinct values.

Value

Does not return anything


stratamatch documentation built on March 31, 2022, 9:07 a.m.