make_ac_plot: Make Assignment-Control plot

View source: R/S3_methods.R

make_ac_plotR Documentation

Make Assignment-Control plot

Description

Not meant to be called externally. Helper plot function for strata object with type = "AC". Produces a Assignment-Control plot of stratum s

Usage

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


raikens1/stratamatch documentation built on April 1, 2022, 9:48 p.m.