This will use the following items from settings:

  • settings$pfts

  • settings$database$bety

  • settings$database$dbfiles

  • settings$meta.analysis$update

run.meta.analysis(
  pfts,
  iterations,
  random = TRUE,
  threshold = 1.2,
  dbfiles,
  database,
  use_ghs = TRUE,
  update = FALSE
)

Arguments

pfts

the list of pfts to get traits for

iterations

the number of iterations for the mcmc analysis

random

should random effects be used?

threshold

Gelman-Rubin convergence diagnostic, passed on to pecan.ma.summary

dbfiles

location where previous results are found

database

database connection parameters

use_ghs

do not exclude greenhouse data if TRUE

update

logical: Rerun the meta-analysis if result files already exist?

Value

nothing, as side effect saves trait.mcmc created by pecan.ma and post.distns created by approx.posterior(trait.mcmc, ...) to trait.mcmc.Rdata and post.distns.Rdata, respectively

Author

Shawn Serbin, David LeBauer