check_inputs_manual_stratify: Check inputs to manual_stratify

View source: R/manual_stratify.R

check_inputs_manual_stratifyR Documentation

Check inputs to manual_stratify

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

check_inputs_manual_stratify(data, strata_formula, force)

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 April 1, 2022, 9:48 p.m.