make_ac_plot function

Make Assignment-Control plot

Make Assignment-Control plot

Not meant to be called externally. Helper plot function for strata

object with type = "AC". Produces a Assignment-Control plot of stratum s

make_ac_plot( x, propensity, strat, strata_lines, jitter_prognosis, jitter_propensity )

Arguments

  • x: an auto_strata object returned by auto_stratify
  • propensity: ignored unless type = "hist" or type = "AC". Specifies propensity score information for plots where this is required. Accepts either a vector of propensity scores, a glm model for propensity scores, or a formula for fitting a propensity score model.
  • strat: the number code of the stratum to be plotted. If "all", plots all strata.
  • strata_lines: default = TRUE. Ignored unless type = "AC". If TRUE, lines on the plot indicate strata cut points.
  • jitter_prognosis: ignored unless type = "AC". Amount of uniform random noise to add to prognostic scores in plot.
  • jitter_propensity: ignored unless type = "AC". Amount of uniform random noise to add to propensity scores in plot.

See Also

Aikens et al. (preprint) https://arxiv.org/abs/1908.09077 . Section 3.2 for an explaination of Assignment-Control plots

  • Maintainer: Rachael C. Aikens
  • License: GPL-3
  • Last published: 2022-03-31