is.strata: Checks 'strata' class

View source: R/S3_methods.R

is.strataR Documentation

Checks strata class

Description

Checks if the target object is a strata object.

Usage

is.strata(object)

Arguments

object

any R object

Value

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

Examples

dat <- make_sample_data()
m.strat <- manual_stratify(dat, treat ~ C1)
is.strata(m.strat) # returns TRUE

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