Description Usage Arguments Details Value Author(s)
Convert template ma.model.template.R to a JAGS model.
1 2 3 | write.ma.model(modelfile, outfile, reg.model, pr.dist,
pr.param.a, pr.param.b, n, trt.n, site.n, ghs.n, tauA,
tauB)
|
modelfile |
model template file (ma.model.template.R) |
outfile |
file name of model created |
reg.model |
structure of regression model |
pr.dist |
A string representing the root distribution name used by R, e.g. 'norm', 'lnorm', 'gamma', 'beta', etc. |
pr.param.a |
first parameter value accepted by
|
pr.param.b |
second parameter value accepted by
|
n |
number of observations in data |
trt.n |
number of distinct treatments in data |
site.n |
number of distinct sites in data |
ghs.n |
= 1 if only non-greenhouse or greenhouse studies included, 2 if both |
tauA |
parameter a for gamma prior on precision |
tauB |
parameter b for gamma prior on precision |
Writes a meta-analysis model based on available data and
prior specification. Adapted from
write.model
Nothing, but as a side effect, the model is written
David LeBauer and Mike Dietze, based on original work on
the write.model
function in the R2WinBUGS
package by Jouni Kerman and Uwe Ligges.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.