is.strata: Checks 'strata' class

Description Usage Arguments Value Examples

View source: R/S3_methods.R

Description

Checks if the target object is a strata object.

Usage

1
is.strata(object)

Arguments

object

any R object

Value

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

Examples

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

raikens1/stratamatch documentation built on May 27, 2021, 10:13 p.m.