drcount | R Documentation |
Doubly robust estimator of the average treatment effect between two treatments, which is the rate ratio of treatment 1 over treatment 0 for count outcomes.
drcount(
y,
trt,
x.cate,
x.ps,
time,
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 |
time |
A numeric vector of size |
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 allow for treatment-covariate interaction by |
Return a list of 4 elements:
log.rate.ratio
: A numeric value of the estimated log rate ratio.
rate0
: A numeric value of the estimated rate in the group trt=0.
rate1
: A numeric value of the estimated rate in the group trt=1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.