subgroup.effects {personalized} | R Documentation |
Computes treatment effects within various subgroups
Description
Computes treatment effects within various subgroups to estimate subgroup treatment effects
Usage
subgroup.effects(
benefit.scores,
y,
trt,
pi.x,
cutpoint = 0,
larger.outcome.better = TRUE,
reference.trt = NULL
)
Arguments
benefit.scores |
vector of estimated benefit scores |
y |
The response vector |
trt |
treatment vector with each element equal to a 0 or a 1, with 1 indicating treatment status is active. |
pi.x |
The propensity score for each observation |
cutpoint |
numeric value for patients with benefit scores above which
(or below which if |
larger.outcome.better |
boolean value of whether a larger outcome is better. Set to |
reference.trt |
index of which treatment is the reference (in the case of multiple treatments).
This should be known already, as for a |
See Also
fit.subgroup
for function which fits subgroup identification models which generate
benefit scores.