Generator of subintensity matrix for the special case of segregating sites, ie. summary of all frequency counts

segsites(n, theta)

Arguments

n

sample size (positive integer)

theta

mutation parameter (positive)

Value

A `disc_phase_type` object containing subintensity matrix (P), vector of initial probabilities (alpha) and defect (probability of not entering any transient state prior to absorption)

Examples

segsites(n = 4, theta = 2)
#> $subint_mat #> [,1] [,2] [,3] #> [1,] 0.4 0.3 0.2000000 #> [2,] 0.0 0.5 0.3333333 #> [3,] 0.0 0.0 0.6666667 #> #> $init_probs #> [,1] [,2] [,3] #> [1,] 1 0 0 #> #> $defect #> [1] 0 #> #> attr(,"class") #> [1] "disc_phase_type"