Q_bichrom: Calculates Q-matrix for BiChroM model

Description Usage Arguments Details Value

Description

Calculates Q-matrix for BiChroM model

Usage

1
Q_bichrom(log.theta, size)

Arguments

log.theta

vector of size 10 indicating parameters in ln scale for BiChoM the order of the parameters is (lambda0, lambda1, mu0, mu1, rho0, rho1, q01,q10, e0, e1)

size

Maximum number of chromosomes in the sample (recommended no more than 50, states larger than that should be coded as 51)

Details

Q_bichrom determines the Q-matrix for a model of chromosome number change associated with a binary state with traits coded as 0 or 1.

Value

Q a sparse matrix of size 2*(size+1)


fmichonneau/chromploid documentation built on May 16, 2019, 1:43 p.m.