Balance diagnostics for Telescope Match objects
Arguments
- object
an object of class
tmatch
– results from a call totelescope_match
- vars
a formula object containing either the treatment or the mediator as the dependent variable (which denotes whether first-stage or second-stage balance diagnostics are returned) and the covariates for which balance diagnostics are requested as the independent variables. Each covariate or function of covariates (e.g. higher-order polynomials or interactions) should be separated by a +.
- data
the data frame used in the call to
telescope_match
- comparison
a binary indicator for if the function should return the balance for the treated group (`1`), for the control group (`0`), or for overall combined balanced (`NULL`, the default).
Value
Returns a data frame with the following columns.
variable: Name of covariate
before_0: Pre-matching average of the covariate in the mediator == 0 (if first stage balance) or treatment == 0 (if second stage balance) condition
before_1: Pre-matching average of the covariate in the mediator == 1 (if first stage balance) or treatment == 1 (if second stage balance) condition
after_0: Post-matching average of the covariate in the mediator == 0 (if first stage balance) or treatment == 0 (if second stage balance) condition
after_1: Post-matching average of the covariate in the mediator == 1 (if first stage balance) or treatment == 1 (if second stage balance) condition
before_sd: standard deviation of the outcome (pre-Matching)
before_diff: Pre-matching covariate difference between mediator arms (if first stage balance) or treatment arms (if second stage balance).
before_std_diff: Pre-matching standardized covariate difference between mediator arms (if first stage balance) or treatment arms (if second stage balance), Equal to Before_Diff/SD.
after_diff: Post–matching covariate difference between mediator arms (if first stage balance) or treatment arms (if second stage balance).
after_std_diff: Post-matching standardized covariate difference between mediator arms (if first stage balance) or treatment arms (if second stage balance), Equal to Before_Diff/SD.