check_inputs_manual_stratify: Check inputs to manual_stratify

Description Usage Arguments Value

View source: R/manual_stratify.R

Description

Not meant to be called externally. Checks validity of formula, types of all inputs to manual stratify, and warns if covariates are continuous.

Usage

1

Arguments

data

data.frame with observations as rows, features as columns

strata_formula

the formula to be used for stratification. (e.g. treat ~ X1) the variable on the left is taken to be the name of the treatment assignment column, and the variables on the left are taken to be the variables by which the data should be stratified

force

a boolean. If true, run even if a variable appears continuous. (default = FALSE)

Value

nothing; produces errors and warnings if anything is wrong


raikens1/stratamatch documentation built on May 27, 2021, 10:13 p.m.