Description Usage Arguments Details Value Examples
This function plots interaction between received treatment and recommended treatment, which provides an estimate of treatment effect of the identified subgroup.
1 2 |
x |
A fitted "mp" class object returned by |
penalty_index |
The index of penalty parameter configuration in |
... |
not used |
In the interaction plot, each point is the group mean given a received treatment and a recommended treatment. Although usually overestimating treatment effect in training set, interaction plots provides a sanity check for treatment recommendation rules. Given a specific index of penalty parameter, the function plots corresponding interaction plots.
A list object with each element as the interaction plots for a penalty parameter configuration.
1 2 3 4 5 6 7 8 9 10 11 12 | set.seed(123)
sim_dat = simulated_dataset(n = 200, problem = "meta-analysis")
Xlist = sim_dat$Xlist; Ylist = sim_dat$Ylist; Trtlist = sim_dat$Trtlist
# fit different rules with SGL penalty for this meta-analysis problem
mp_mod_diff = mpersonalized(problem = "meta-analysis",
Xlist = Xlist, Ylist = Ylist, Trtlist = Trtlist,
penalty = "lasso", single_rule = FALSE)
# interaction plot of the 5th penalty parameter
plots = plot(x = mp_mod_diff, penalty_index = 5)
set.seed(NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.