is.auto_strata: Checks 'auto_strata' class

View source: R/S3_methods.R

is.auto_strataR Documentation

Checks auto_strata class

Description

Checks if the target object is an auto_strata object.

Usage

is.auto_strata(object)

Arguments

object

any R object

Value

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

Examples

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

stratamatch documentation built on March 31, 2022, 9:07 a.m.