make_coalescent_data: Make data list for coalescent data

Description Usage Arguments Value

View source: R/make_coalescent_data.r

Description

Generates a list containing the data elements necessary to fit a SPMRF model to coalescent data, where effective population sizes are estimated on a uniform grid. This function is based on code written by Michael Karcher for the phylodyn package and expanded for use with spmrf.

Usage

1
make_coalescent_data(samp_times, n_sampled, coal_times, grid)

Arguments

samp_times

numeric vector of sampling times.

n_sampled

numeric vector of samples taken per sampling time.

coal_times

vector of coalescent times

grid

vector of grid boundaries (length is number of grid cells plus 1)

Value

A list containing


faulknerjam/bnps documentation built on Sept. 26, 2020, 8:07 p.m.