Skip to contents

Plot graphs for assessment of covariate balance and results in a IOPW analysis. This function currently supports mirrored histograms, SMD plots and model coefficient plots.

Usage

# S3 method for class 'transportIP'
plot(
  x,
  type = "propensityHist",
  bins = 50,
  covariates = NULL,
  effectModifiers = NULL,
  ...
)

Arguments

x

Result from transportIP function

type

One of "propensityHist", "propensitySMD", "participationHist", "participationSMD", "msm". Hist produces mirrored histograms of estimated probability of treatment between treatment groups (for propensity), or of estimated probability of participation between study and target data (for participation). SMD produces SMD plots of covariates between treatment groups (for propensity) or effect modifiers between study and target data (for participation). msm produces plots showing confidence intervals for the model coefficients, which should have the correct standard errors.

bins

Number of bins for propensity score/participation probability histograms. This is only used for Hist.

covariates

Vector of strings indicating names of covariates in propensity model

effectModifiers

Vector of strings indicating names of effect modifiers in participation model

...

Further arguments from previous function or to pass to next function

Value

A ggplot object which contains the desired plot.