View source: R/est_subgroup_effects.R
subgroup.effects | R Documentation |
Computes treatment effects within various subgroups to estimate subgroup treatment effects
subgroup.effects( benefit.scores, y, trt, pi.x, cutpoint = 0, larger.outcome.better = TRUE, reference.trt = NULL )
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 |
fit.subgroup
for function which fits subgroup identification models which generate
benefit scores.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.