Evaluates a bpe_design() object on a data frame and returns the resulting
logical indicator.
Arguments
- design
A
bpe_design()object.- data
Data frame used for evaluation.
Maximum allowable share of
NAvalues in the subset indicator before evaluation fails. The default is0.05.
Examples
design <- bpe_design("Inactive", ~ inactive,
rationale = "The treatment channel is absent.")
bpe_eval_subset(design, data.frame(inactive = c(TRUE, FALSE)))
#> [1] TRUE FALSE
#> attr(,"bpe_warnings")
#> character(0)
#> attr(,"bpe_na_share")
#> [1] 0