draw_part_from_list: Draw partition from pre-computed list

Description Usage Arguments Details Value

View source: R/simulate-conditional-bp.R

Description

Draw partition from pre-computed list

Usage

1
2
3
4
5
6
draw_part_from_list(
  n,
  part_list = NULL,
  g_weight_list = NULL,
  one_init = FALSE
)

Arguments

n

number of total people in cluster

part_list

pre computed list of partitions (see details)

g_weight_list

a summary of part_list, gives the number of times generations of size g appear in a cluster of size n

Details

part_list is a list of lists. The first list is named by the total number in the cluster, "nx" where x is the number in that cluster. The second list is "gy" where y is the number of generations in that partition. Each entry in the second list is a matrix with number rows of size y. Each column is a unique partition and so all columns will sum to n.

Value

a matrix of dimension g x 1


skgallagher/TBornotTB documentation built on April 21, 2020, 1:19 p.m.