estsurv.bilevel.subgroups {precmed} | R Documentation |
Estimate the ATE of the RMTL ratio and unadjusted hazard ratio in multiple bi-level subgroups defined by the proportions
Description
If only care about the higher subgroup (above cutoff), only need ate.rmtl.high and hr.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
== FALSE;
this is because estsurv() function always takes the subgroup of the top highest adjusted scores,
and higher adjusted scores should always represent high responders of trt=1
Usage
estsurv.bilevel.subgroups(
y,
d,
x.cate,
x.ps,
x.ipcw,
trt,
yf,
tau0 = tau0,
score,
higher.y,
prop,
onlyhigh,
surv.min = 0.025,
ps.method = "glm",
minPS = 0.01,
maxPS = 0.99,
ipcw.method = "breslow"
)
Arguments
y |
Observed survival or censoring time; vector of size |
d |
The event indicator, normally |
x.cate |
Matrix of |
x.ps |
Matrix of |
x.ipcw |
Matrix of |
trt |
Treatment received; vector of size |
yf |
Follow-up time, interpreted as the potential censoring time; vector of size |
tau0 |
The truncation time for defining restricted mean time lost. |
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 |
Indicator of returning only the ATEs in the higher-than-cutoff category of the bi-level subgroups; boolean. |
surv.min |
Lower truncation limit for probability of being censored (positive and very close to 0). |
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 |
ipcw.method |
The censoring model. Allowed values are: |
Value
ate.rmtl.high: estimated ATEs (ratio of RMTL) 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.rmtl.low: estimated ATEs (ratio of RMTL) 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
.
hr.high: unadjusted hazard ratio 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.
hr.low: unadjusted hazard ratio 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