This function takes JAGS model presented as a string and identifies what
prior values have been used for calculation.
A character object of JAGS MBNMA model code
Even if an MBNMA model that has not initialised successfully and
results have not been calculated, the JAGS model for it is saved in
mbnma$model.arg$jagscode and therefore priors can still be obtained.
This allows for priors to be changed even in failing models, which may help
solve issues with compiling or updating.
A character vector, each element of which is a line of JAGS code corresponding to a prior in the JAGS code.
1 2 3 4 5 6 7 8 9 10 11 12
# Using the triptans data network <- mbnma.network(HF2PPITT) # Run an Emax dose-response MBNMA result <- mbnma.emax(network, emax="rel", ed50="rel", method="random") # Obtain model prior values print(result$model.arg$priors) # Priors when using mbnma.run with an exponential function result <- mbnma.run(network, fun="exponential", beta.1="rel", method="random") print(result$model.arg$priors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.