samp_check: Predictive check for sampling model

Description Usage Arguments Value

View source: R/model_check.R

Description

Predictive check for sampling model

Usage

1
2
samp_check(samp_times, n_sampled, logpop, grid, betas, covariates = NULL,
  cov_betas = NULL, pow_covariates = NULL, pow_cov_betas = NULL)

Arguments

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.

betas

numeric vector of log-linear coefficients for sampling model.

covariates

list of vectors representing covariate values.

cov_betas

numeric coefficients for each element of covariates.

pow_covariates

list of vectors representing interaction covariate values.

pow_cov_betas

numeric coefficients for each element of pow_covariates.

Value

named numeric vector: "obs" contains the chi-square discrepancy for the supplied sampling times, "rep" contains å chi-square discrepancy for the replicated sampling times.


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