default.priors {MBNMAdose} | R Documentation |
Sets default priors for JAGS model code
Description
This function creates JAGS code snippets for default MBNMA model priors.
Usage
default.priors(
fun = dloglin(),
UME = FALSE,
regress.mat = NULL,
regress.effect = "common",
om = list(rel = 5, abs = 10)
)
Arguments
fun |
An object of |
UME |
A boolean object to indicate whether to fit an Unrelated Mean Effects model that does not assume consistency and so can be used to test if the consistency assumption is valid. |
regress.mat |
A Nstudy x Ncovariate design matrix of meta-regression covariates |
regress.effect |
Indicates whether effect modification should be assumed to be
|
om |
a list with two elements that report the maximum relative ( |
Value
A list, each element of which is a named JAGS snippet corresponding to a prior in the MBNMA JAGS code.
Examples
default.priors(fun=demax())