estcount.bilevel.subgroups | R Documentation |
If only care about the higher subgroup (above cutoff), only need trt.est.high so set onlyhigh
to be TRUE
Scores are adjusted to the opposite sign if higher.y
== FALSE; scores stay the same if higher.y
== TRUE;
this is because estcount.bilevel.subgroups() always takes the subgroup of the top highest adjusted scores,
and higher adjusted scores should always represent high responders of trt=1
estcount.bilevel.subgroups(
y,
x.cate,
x.ps,
time,
trt,
score,
higher.y,
prop,
onlyhigh,
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]' (if onlyhigh=T) or in '(0, 1)' (if onlyhigh=F):
Each element of |
onlyhigh |
Indicator of returning only the ATEs in the higher-than-cutoff category of the bi-level subgroups; boolean |
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 |
ate.est.high: estimated ATEs in the multiple bi-level subgroups that are in the higher-than-cutoff category;
vector of size equal to the length of prop; always returned
ate.est.low: estimated ATEs in the multiple bi-level subgroups that are in the lower-than-cutoff category;
vector of size equal to the length of prop; returned only when onlyhigh
== TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.