main_save_files: Save data and results

Description Usage Arguments

View source: R/mbd_main_utils.R

Description

Save data and results

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
main_save_files(
  project_folder,
  sim_pars,
  optim_ids,
  cond,
  n_0,
  t_0s,
  seed,
  sim,
  results
)

Arguments

project_folder

the folder when you want to save data and results

sim_pars

vector of starting parameters:

  • sim_pars[1] is lambda, the sympatric speciation rate;

  • sim_pars[2] is mu, the extinction rate;

  • sim_pars[3] is nu, the multiple allopatric speciation trigger rate;

  • sim_pars[4] is q, the single-lineage speciation probability;

optim_ids

ids of the parameters you want to optimize.

cond

sets the conditioning

  • cond = 0: no conditioning;

  • cond = 1: conditioning on stem or crown age and non-extinction of the phylogeny;

n_0

the number of lineages at time equals zero.

t_0s

starting time for each clade

seed

the seed

sim

the results of a sim run

results

mle results


Giappo/mbd documentation built on March 3, 2020, 3:36 a.m.