Individual Meta-analysis

single.MA(
  data,
  j.chains,
  j.iter,
  tauA,
  tauB,
  prior,
  jag.model.file,
  overdispersed = TRUE
)

Arguments

data

data frame generated by jagify function with indexed values for greenhouse, treatment, and site (ghs, trt, site) as well as Y, SE, and n for each observation or summary statistic.

j.chains

number of chains in meta-analysis

j.iter

number of mcmc samples

tauA

prior on variance parameters

tauB

prior on variance parameters

prior

data.frame with columns named 'distn', 'parama', 'paramb' e.g. prior <- data.frame(distn = 'weibull', parama = 0.5, paramb = 10, n = 1)

jag.model.file

file to which model will be written

overdispersed

if TRUE (default), chains start at overdispersed locations in parameter space (recommended)

Value

jags.out, an mcmc.object with results of meta-analysis

Details

Individual meta-analysis for a specific trait and PFT is run by the function single.MA. This will allow power analysis to run repeated MA outside of the full loop over traits and PFTs.

Author

David LeBauer, Michael C. Dietze