Skip to contents

A class for defining borrowing details. Objects of class Borrowing should not be created directly but by the constructor borrowing_details().

Slots

method

character. The type of borrowing to perform. It must be one of: 'BDB', 'Full borrowing', or 'No borrowing'. See ?borrowing_details for more information.

ext_flag_col

character. The name of the column in the data matrix that corresponds to the external control flag (1/0 or TRUE/FALSE). This identifies a patient as belonging to the external control cohort.

tau_prior

Prior. Object of class Prior defining the hyperprior on the "commensurability parameter". See ?borrowing_details for more information.

data_stan_code

string. Code to include in the Stan data program block.