estcount.multilevel.subgroup | R Documentation |
Scores are adjusted to the opposite sign if higher.y
== FALSE; scores stay the same if higher.y
== TRUE;
this is because subgroups defined in estcount.multilevel.subgroup() start from the lowest to the highest adjusted scores,
and higher adjusted scores should always represent high responders of trt=1
estcount.multilevel.subgroup(
y,
x.cate,
x.ps,
time,
trt,
score,
higher.y,
prop,
ps.method = "glm",
minPS = 0.01,
maxPS = 0.99
)
y |
Observed outcome; vector of size |
x.cate |
Matrix of |
x.ps |
Matrix of |
time |
Log-transformed person-years of follow-up; vector of size |
trt |
Treatment received; vector of size |
score |
Estimated log CATE scores for all |
higher.y |
A logical value indicating whether higher ( |
prop |
Proportions corresponding to percentiles in the estimated log CATE scores that define subgroups to calculate ATE for;
vector of floats in '[0, 1]' always starting with 0 and ending with 1:
Each element of |
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 |
estimated ATEs of all categories in the one multilevel subgroup; vector of size equal to the length of categories in the multilevel subgroup
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.