warn_if_continuous: Warn if continuous

Description Usage Arguments Details Value

View source: R/manual_stratify.R

Description

Throws an error if a column is continuous

Usage

1

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


raikens1/stratamatch documentation built on Aug. 6, 2020, 7:29 a.m.