horseshoe | R Documentation |
Function to fit a bayesian shrinkage model with a regularized horseshoe prior on the interaction coefficients between the subgrouping covariates and the treatment.
horseshoe(
resp,
trt,
subgr,
covars,
data,
resptype = c("survival", "binary"),
status = NULL,
...
)
resp |
( |
trt |
( |
subgr |
( |
covars |
( |
data |
( |
resptype |
( |
status |
( |
... |
Additional arguments from the |
List with fit
, model
, resptype
, data
, alpha
,
design_matrix
, design_dummy
, y
, subgr_names
.
horseshoe("ev_pfs", "arm", c("x_1", "x_2"), c("x_1", "x_2", "x_3"),
example_data, "binary",
chains = 1, seed = 0, control = list(adapt_delta = 0.95),
iter = 50 # In practice, you need to omit this or set it much higher!
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.