Description Usage Arguments Value Examples
View source: R/initialize_pts.R
For a point theta in the simplex, and a vector of counts (N_1,...,N_K), sample for each k, N_k points uniformly in the subsimplex Delta_k(theta), where N_k > 0, and compute the minimum ratio u_n,l / u_n,k for all l in 1,...,K.
1 | initialize_pts(counts, theta)
|
counts |
a vector of K integers representing counts, possibly including zeros |
theta |
a point in the simplex, represented by a K-vector of non-negative values summing to one |
A list with the following entries.
"pts": a list of K matrices of size N_k x K containing the auxiliary variables, or NA if N_k = 0
"minratios", a list of K vectors of size K, where minratios[k] has entry ell equal to min_n in I_k u_n,ell / u_n,k which can be used to define 'eta_k,ell'. Equals +Inf if N_k = 0.
1 2 3 4 | ## Not run:
initialize_pts(c(3,0,2), c(1/3,1/3,1/3))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.