bic: Information criteria

Description Usage Arguments Value Examples

View source: R/criteria.R

Description

Loglikelihood, Bayesian Information Criterion and Phylogenetic BIC

Usage

1
2
3
4
5
bic(obs_zscores, est_zscores, est_shifts, mat_covarOU)

loglikelihood(obs_zscores, est_zscores, mat_covarOU)

pbic(obs_zscores, est_zscores, est_shifts, mat_incidence, mat_covarOU)

Arguments

obs_zscores

Observed z-scores.

est_zscores

Estimated z-scores.

est_shifts

Estimated z-scores.

mat_covarOU

Covariance matrix.

mat_incidence

Incidence matrix.

Value

scalar

Examples

1
2
3
4
bic(obs_zscores = c(-2.7, -2.3, 0.2, -0.1, -2, 0.1),
    est_zscores = c(-2.5, -2.5, 0, 0, -1, 0),
    est_shifts = c(0, 0, 0, 0, -1, 0, -2.5, 0, 0, 0),
    mat_covarOU = diag(rep(1, 6)))

abichat/zazou documentation built on Sept. 8, 2021, 6:53 a.m.