This will use the following items from settings:
settings$pfts
settings$database$bety
settings$database$dbfiles
settings$meta.analysis$update
Usage
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
(integer) Number of sampler iterations for MCMC analysis
- random
(boolean; default = TRUE) Should random effects be used?
- threshold
Gelman-Rubin convergence diagnostic, passed on to
pecan.ma.summary- dbfiles
(character) directory where previous results are found
- database
database connection parameters
- use_ghs
(boolean; default = TRUE) If TRUE, do not exclude greenhouse data
- 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