print.strat {optrefine}R Documentation

Print stratification object

Description

Print method for class "strat". Prints tables of numbers of control and treated units without strata and in initial and/or improved strata. Also displays average and maximum standardized mean difference for each stratification.

Usage

## S3 method for class 'strat'
print(x, ...)

Arguments

x

object of S3 class 'strat'

...

further arguments passed to or from other methods

Value

Returns x back invisibly and prints tables and statistics to the console

Examples

# Choose 750 patients and 5 covariates to work with for the example
set.seed(21)
samp <- sample(1:nrow(rhc_X), 750)
cov_samp <- sample(1:26, 5)
ref <- refine(X = rhc_X[samp, cov_samp], z = rhc_X[samp, "z"])
print(ref)

[Package optrefine version 1.1.0 Index]