print.strat | R Documentation |
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.
## S3 method for class 'strat'
print(x, ...)
x |
object of S3 class 'strat' |
... |
further arguments passed to or from other methods |
Returns x
back invisibly and prints tables and statistics to the console
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.