Skip to contents

ReA fct function

Usage

combined.plot(xvar, yvar, M1, M2, te = NULL, outcome.f = y ~ t)

Arguments

xvar

a scalar character of the name of the variable you want on the x-axis

yvar

a scalar character of the name of the variable you want on the y-axis

M1

the output from the `matched.data()` function

M2

the output from the `matched.data()` function

te

the treatment effect you would like displayed, can be NULL (default)

outcome.f

a two-sided formula to estimate the the effect of treatment on the outcome, must at least contain the treatment variable on the right side (e.g. outcome ~ treatment)

Value

Returns a Plotly object with 2 matching comparisons as specified in M1 and M2 as well as a plot showing the standardised mean differences between covariates and matching methods and a plot showing the estimated treatment effect for the two matching methods with the raw, and weighted and stratified propensity score estimates.