historySimulator_teststatisticsComputer: Simulate discrete-character histories using the inferred...

historySimulator_teststatisticsComputerR Documentation

Simulate discrete-character histories using the inferred posterior distribution and compute posterior-predictive summary statistics using the simulated histories

Description

Simulate discrete-character histories using the inferred posterior distribution and compute posterior-predictive summary statistics using the simulated histories

Usage

historySimulator_teststatisticsComputer(
  states_dat,
  taxon_name,
  discrete_trait_name,
  tree_path,
  log_path,
  simsamples_num = 1000L,
  simulated_outpath
)

Arguments

states_dat

A data-frame object containing at least two columns: one for the name of each tip (column name specified by taxon_name), and the other for the trait state of each tip (column name specified by discrete_trait_name).

taxon_name

Name of the column containing tip names.

discrete_trait_name

Name of the column containing tip states.

tree_path

File path of the posterior distribution of trees that will be read in to simulated over.

log_path

File path of the posterior distribution of parameters whose values will be used in the simulation.

simsamples_num

Number of histories to simulate.

simulated_outpath

File path to write the simulated data to.

Value

A data-frame object that contains the simulated and observed values of the two summary statistics


jsigao/prioritree documentation built on Jan. 9, 2023, 5:35 a.m.