View source: R/summary_PSweight.R
summary.PSweight | R Documentation |
summary.PSweight
is used to summarize the results from PSweight
.
The output contains the average causal effects defined by specific contrasts, as well as their
standard error estimates.
## S3 method for class 'PSweight'
summary(object, contrast = NULL, type = "DIF", CI = TRUE, ...)
object |
a PSweight object obtained from the |
contrast |
a vector or matrix specifying the causal contrast of interest. The average causal effects will be defined by such contrats. For multiple treatments, the contrast parameters are explained in Li and Li (2019) for estimating general causal effects. Default is all pairwise contrasts between any two treatment groups. |
type |
a character specifying the target estimand. The most commonly seen additive estimand is specified
by |
CI |
a logical argument indicates whether confidence interval should be calculated. Default is |
... |
further arguments passed to or from other methods. |
For the contrast
argument, one specifies the contrast of interest and thus defines the target estimand
for comparing treatments. For example, if there are three treatment levels: A, B, and C, the contrast A-C
(i.e., E[Y(A)] - E[Y(C)]) can be specified by c(1,0,-1)
. The contrasts of A-C and B-C can be
jointly specified by rbind(c(1,0,-1), c(0,1,-1))
.
For estimating the causal relative risk (type = "RR"
), the contrast is specified at the log scale. For example,
the contrast A-C (specified by c(1,0,-1)
) implies the estimation of log{E[Y(A)]} - log{E[Y(C)]}. For estimating the causal odds
ratio, the contrast is specified at the log odds scale. For example, the contrast A-C (specified by c(1,0,-1)
)
implies the estimation of log{E[Y(A)]/E[1-Y(A)]} - log{E[Y(C)]/E[1-Y(C)]}.
The variance of the contrasts will be estimated by the delta method (if sandwich variance is used, or
bootstrap = FALSE
), or nonparametric bootstrap (if bootstrap = TRUE
). Details will be given in
Zhou et al. (2020+).
The argument type
takes one of three options: "DIF"
, "RR"
, or "RR"
, with "DIF"
as
the default option. Typically, "RR"
is relavent for binary or count outcomes, and "OR"
is relavent
only for binary outcomes. "DIF"
applies to all types of outcomes.
A list of following values:
estimates
a matrix of point estimates, standard errors, test statistics, 95 for contrasts of interest.
bootestimates
a list of data frames containing estimated contrasts in each bootstrap replicate, if bootstrap is used to estimate standard errors.
contrast
a table listing the specified contrasts of interest.
group
a table of treatment group labels corresponding to the output point estimates, provided in results
obtained from PSweight
.
trtgrp
a character indicating the treatment group, or target population under ATT weights.
type
a character specifying the target estimand.
CI
a logical indaicator of whether confidence interval should be reported.
Li, F., Morgan, K. L., Zaslavsky, A. M. (2018). Balancing covariates via propensity score weighting. Journal of the American Statistical Association, 113(521), 390-400.
Li, F., Li, F. (2019). Propensity score weighting for causal inference with multiple treatments. The Annals of Applied Statistics, 13(4), 2389-2415.
## For examples, run: example(PSweight).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.