Description Usage Arguments Details Value
View source: R/simulate-conditional-bp.R
Draw partition from pre-computed list
1 2 3 4 5 6 | draw_part_from_list(
n,
part_list = NULL,
g_weight_list = NULL,
one_init = FALSE
)
|
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 |
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.
a matrix of dimension g x 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.