Helper function to extract BUGS files for given input parameters

extract_BUGS_file(
  data.type,
  bth.model,
  bth.prior,
  model.pars = NULL,
  model.type = c("PWE", "FP")
)

Arguments

data.type

Only GSD currently supported

bth.model

FE or RE

bth.prior

list containins priors infomation

model.pars

Only needed for FP model, list containing exponets to determin order (1st of 2nd)

model.type

Either PWE or FP