Description Usage Arguments Value Examples
This function provides coef
method for "mp_cv" class objects.
1 2 |
object |
A fitted "mp" object returned by "mpersonalized". |
... |
not used |
The fitted coefficients corresponding to the optimal penalty parameter.
1 2 3 4 5 6 7 8 9 10 11 | 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 lasso penalty for this meta-analysis problem
mp_cvmod_diff = mpersonalized_cv(problem = "meta-analysis",
Xlist = Xlist, Ylist = Ylist, Trtlist = Trtlist,
penalty = "lasso", single_rule = FALSE)
mp_coef = coef(mp_cvmod_diff)
set.seed(NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.