coal_check: Predictive check for coalescent model

Description Usage Arguments Value

View source: R/model_check.R

Description

Predictive check for coalescent model

Usage

1
coal_check(coal_times, samp_times, n_sampled, logpop, grid)

Arguments

coal_times

numeric vector of coalescent times.

samp_times

numeric vector of sampling times.

n_sampled

integer vector of lineages sampled at each sampling time.

logpop

numeric vector of log-effective population sizes.

grid

numeric grid of time points.

Value

named numeric vector: "obs" contains the KS discrepancy for the supplied coalescent times, "rep" contains å KS discrepancy for the replicated coalescent times.


mdkarcher/phylodyn documentation built on Nov. 24, 2021, 12:20 a.m.