groupedTTE_pwe_pre_proc.Rd
Utility function for pre-processing: prepare jags input data for PWE model.
groupedTTE_pwe_pre_proc(
dat,
ref.std = NULL,
nma.ref.trt = NULL,
model.pars = NULL,
feprior_mean = NULL,
feprior_prec = NULL,
bth.prior = NULL
)
A data.frame
with columns study, treatment, t.start, t.end, n.event, n.risk.
A character
of the reference study
A character
of the reference treatment
list
, containing exponents (numeric vector of exponents for FP model) and
t.eval - one of "midpoint" (the default), "start", or "end", to identify the time-point within each interval used to calculate the hazard rate (over each interval, the hazard function is approximated with this value h(t.eval)); alternatively, a numeric
value in the interval [0,1] used to define t.eval (where for example "midpoint" corresponds to the value 0.5).
A numeric
value representing feprior_mean (default 0)
A numeric
value representing feprior_prec default 0.0001
A numeric
list containing between-trial heterogeneity priors
A list
with input data for jags fit of PWE model.