plot.manual_strata | R Documentation |
manual_strata
objectGenerates diagnostic plots for the product of a stratification by
manual_stratify
. There are two plot types:
"SR"
(default) - produces a scatter plot of strata by size and
treat:control ratio
"hist"
- produces a histogram of propensity
scores within a stratum.
Note that residual plots and AC plots are not
supported for manual_strata
objects because no prognostic model is
fit.
## S3 method for class 'manual_strata' plot(x, type = "SR", label = FALSE, stratum = "all", propensity, ...)
x |
a |
type |
string giving the plot type (default = |
label |
ignored unless |
stratum |
ignored unless |
propensity |
ignored unless |
... |
other arguments |
dat <- make_sample_data() m.strat <- manual_stratify(dat, treat ~ C1) plot(m.strat) # makes size-ratio scatter plot plot(m.strat, type = "hist", propensity = treat ~ X1, stratum = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.