| drmean {precmed} | R Documentation | 
Doubly robust estimator of the average treatment effect for continuous data
Description
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.
Usage
drmean(
  y,
  trt,
  x.cate,
  x.ps,
  ps.method = "glm",
  minPS = 0.01,
  maxPS = 0.99,
  interactions = TRUE
)
Arguments
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 (in [0, 1]) below which estimated propensity
scores should be truncated. Default is   | 
maxPS | 
 A numerical value (in (0, 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   | 
Value
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.