elastic_net | R Documentation |
Function to fit the elastic net penalization model to the data. This model penalizes the interaction between the covariates and the treatment but leaves unpenalized the main effects.
elastic_net(
resp,
trt,
subgr,
covars,
data,
resptype = c("survival", "binary"),
alpha,
status = NULL
)
resp |
( |
trt |
( |
subgr |
( |
covars |
( |
data |
( |
resptype |
( |
alpha |
( |
status |
( |
List with fit
, model
, resptype
, data
, alpha
,
design_matrix
, design_dummy
, y
, subgr_names
.
elastic_net(
"tt_pfs", "arm", c("x_1", "x_2"), c("x_1", "x_2", "x_3"),
example_data, "survival", 1, "ev_pfs"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.