calculate_proba_Dirichlet_restricted function

Calculate Dirichlet probability

Calculate Dirichlet probability

Calculate the probability of observing a partition with a given number of groups for a model with a single statistic for the number of groups and a given parameter value. The set of possible partitions can be restricted to partitions with groups of a certain size.

calculate_proba_Dirichlet_restricted(alpha, stat, n, smin, smax)

Arguments

  • alpha: parameter value
  • stat: observed stat (number of groups)
  • n: number of nodes
  • smin: minimum size for a group
  • smax: maximum size for a group

Returns

a numeric

  • Maintainer: Marion Hoffman
  • License: GPL (>= 3)
  • Last published: 2024-05-10