check_inputs_manual_stratify function

Check inputs to manual_stratify

Check inputs to manual_stratify

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

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)

Returns

nothing; produces errors and warnings if anything is wrong

  • Maintainer: Rachael C. Aikens
  • License: GPL-3
  • Last published: 2022-03-31