run_core: Run the core model

View source: R/F_runcore.R

run_coreR Documentation

Run the core model

Description

Run the core model

Usage

run_core(
  obj,
  core_species = NULL,
  prior_el = NULL,
  ChainNums = seq(1, 3),
  n.iter = 15000,
  n.burnin = 1000,
  n.thin = 7,
  validation.run = FALSE,
  use_uniform_prior = FALSE
)

Arguments

obj

An object of class BTFr from run_modern

core_species

Dataframe containing core species counts

prior_el

prior elevations if available

ChainNums

The number of MCMC chains

n.iter

The number of MCMC iterations

n.burnin

The number of burnin MCMC samples

n.thin

The number of thinning

validation.run

Set to TRUE if running validation

use_uniform_prior

change prior on elevation to be uniform

Value

a list of objects including SWLI and an mcmc array with posterior samples

Examples

test_modern_mod <- run_modern(modern_elevation = NJ_modern_elevation,
                              modern_species = NJ_modern_species,
                              n.iter = 10,
                              n.burnin = 1,
                              n.thin = 1)
test_core_mod <- run_core(test_modern_mod,
                          core_species = NJ_core_species,
                          n.iter = 10,
                          n.burnin = 1,
                          n.thin = 1)

ncahill89/BTF documentation built on Oct. 4, 2022, 5:18 a.m.