treatment_details {psborrow2} | R Documentation |
Specify Treatment Details
Description
Specify the treatment arm column name in the model matrix and set a prior distribution for the treatment effect (log hazard ratio or log odds ratio)
Usage
treatment_details(trt_flag_col, trt_prior)
Arguments
trt_flag_col |
character. The name of the column
in the model matrix that corresponds to the treatment flag
( |
trt_prior |
Object of class |
Value
Object of class Treatment
.
Examples
sta <- treatment_details(
trt_flag_col = "trt",
trt_prior = prior_normal(0, 1000)
)
[Package psborrow2 version 0.0.3.4 Index]