R/HierarchicalMetaAnalysis.R
generateBayesianHMAsettings.Rd
This function generates a settings list for fitting a Bayesian hierarchical meta-analysis model.
See computeHierarchicalMetaAnalysis()
for more details.
generateBayesianHMAsettings(
primaryEffectPriorStd = 1,
secondaryEffectPriorStd = 1,
globalExposureEffectPriorMean = c(0),
globalExposureEffectPriorStd = c(2),
primaryEffectPrecisionPrior = c(1, 1),
secondaryEffectPrecisionPrior = c(1, 1),
errorPrecisionPrior = c(1, 1),
errorPrecisionStartValue = 1,
includeSourceEffect = TRUE,
includeExposureEffect = TRUE,
exposureEffectCount = 1,
separateExposurePrior = FALSE,
chainLength = 1100000,
burnIn = 1e+05,
subSampleFrequency = 100
)
Standard deviation for the average outcome effect.
Standard deviation for the average data-source effect.
Prior mean for the global main exposure effect; can be a multiple entry vector if there are multiple outcomes of interest
Prior standard deviation for the global main exposure effect; can be a multiple entry vector if there are multiple outcomes of interest
Shape and scale for the gamma prior of the precision term in the random effects model (normal) for individual outcome effects.
Shape and scale for the gamma prior of the precision term in the random effects model (normal) for individual data-source effects.
Shape and scale for the gamma prior of the precision term in the normal model for random errors.
Initial value for the error distribution's precision term.
Whether or not to consider the data-source-specific (secondary) random effects. Default is TRUE.
Whether or not to estimate the main effect of interest. Default is TRUE.
Number of main outcomes of interest to estimate effect for? Default = 1
Use a separable prior on the main exposure effect? Default is FALSE.
Number of MCMC iterations.
Number of MCMC iterations to consider as burn in.
Subsample ("thinning") frequency for the MCMC.
A list with all the settings to use in the computeHierarchicalMetaAnalysis()
function.