plot.manual_strata {stratamatch} | R Documentation |
Plot method for manual_strata
object
Description
Generates 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.
Usage
## S3 method for class 'manual_strata'
plot(x, type = "SR", label = FALSE, stratum = "all", propensity, ...)
Arguments
x |
a |
type |
string giving the plot type (default = |
label |
ignored unless |
stratum |
ignored unless |
propensity |
ignored unless |
... |
other arguments |
Examples
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)