isRegular: Checks if mutation model is well behaved

View source: R/isRegular.R

isRegularR Documentation

Checks if mutation model is well behaved

Description

Checks if m_ij <= p_j

Usage

isRegular(M, afreq = NULL)

Arguments

M

a mutation model

afreq

A numeric vector of allele frequencies.

Value

A logical

Author(s)

Thore Egeland.

Examples

## Not run: 
# Not regular:
p = c(0.4, 0.6)
R = stepwiseReversible(alleles = 1:2, afreq = p, rate = 0.6, range = 0.1)
isRegular(R, afreq = p)

## End(Not run)

thoree/mut2 documentation built on May 16, 2023, 7:56 p.m.