drmean | R Documentation |
Doubly robust estimator of the average treatment effect between two treatments, which is the mean difference of treatment 1 over treatment 0 for continuous outcomes.
drmean(
y,
trt,
x.cate,
x.ps,
ps.method = "glm",
minPS = 0.01,
maxPS = 0.99,
interactions = TRUE
)
y |
A numeric vector of size |
trt |
A numeric vector (in {0, 1}) of size |
x.cate |
A numeric matrix of dimension |
x.ps |
A numeric matrix of dimension |
ps.method |
A character value for the method to estimate the propensity
score. Allowed values include one of:
|
minPS |
A numerical value between 0 and 1 below which estimated propensity
scores should be truncated. Default is |
maxPS |
A numerical value between 0 and 1 above which estimated propensity
scores should be truncated. Must be strictly greater than |
interactions |
A logical value indicating whether the outcome model
should assume interactions between |
Return a list of 4 elements:
mean.diff
: A numeric value of the estimated mean difference.
mean.diff0
: A numeric value of the estimated mean difference
in treatment group 0.
mean.diff1
: A numeric value of the estimated mean difference
in treatment group 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.