horseshoe {bonsaiforest} | R Documentation |
Bayesian Shrinkage Model Estimation
Description
Function to fit a bayesian shrinkage model with a regularized horseshoe prior on the interaction coefficients between the subgrouping covariates and the treatment.
Usage
horseshoe(
resp,
trt,
subgr,
covars,
data,
resptype = c("survival", "binary"),
status = NULL,
...
)
Arguments
resp |
( |
trt |
( |
subgr |
( |
covars |
( |
data |
( |
resptype |
( |
status |
( |
... |
Additional arguments from the |
Value
List with fit
, model
, resptype
, data
, alpha
,
design_matrix
, design_dummy
, y
, subgr_names
.
Examples
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!
)