is.auto_strata: Checks 'auto_strata' class

Description Usage Arguments Value Examples

View source: R/S3_methods.R

Description

Checks if the target object is an auto_strata object.

Usage

1

Arguments

object

any R object

Value

Returns TRUE if its argument has auto_strata among its classes and FALSE otherwise.

Examples

1
2
3
dat <- make_sample_data()
a.strat <- auto_stratify(dat, "treat", outcome ~ X1 + X2)
is.auto_strata(a.strat) # returns TRUE

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