powered by
Posterior for alpha0
postalpha0(alpha0, a, b, N, cluster)
A numerical value corresponding to a sample from the posterior of alpha0
A scalar defining the parameter for the Dirichlet process prior that controls the number of clusters (or its initial values)
The hyperparameter value for the shape parameter in the gamma prior for alpha0
The hyperparameter value for the scale parameter in the gamma prior for alpha0
A scalar representing the number of data sequences
A vector containing the cluster assignments for the data sequences (or its initial values)
postalpha0(alpha0 = 1/100, a = 2, b = 1000, N = 5, cluster = c(1,1,2,1,1))
Run the code above in your browser using DataLab