Learn R Programming

optrefine (version 1.1.1)

print.strat: 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 strat
print(x, ...)

Value

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

Arguments

x

object of S3 class 'strat'

...

further arguments passed to or from other methods

Examples

Run this code
# 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)

Run the code above in your browser using DataLab