Fits a finite heirarchical mixture model for comparison to the Nested Dirichlet Process the prior concentration parameters for both mixture components w and pi are fixed to be one.
1 2 3  | 
r | 
 vector of distances associated with differing groups  | 
n_j | 
 matrix of integers denoting the start and length of each school's associated BEF distances  | 
mu_0 | 
 mean hyperparameter for mu normal base measure. Default is 0; Normal(0,1).  | 
kappa_0 | 
 variance hyperparameter for mu normal base measure. Default is 1; Normal(0,1).  | 
nu_0 | 
 df hyperparameter for sigma inv chisq base measure. Default is 1; InvChisq(1,1);  | 
sigma_0 | 
 scale hyperparameter for sigma inv chisq base measure. Default is 1; InvChisq(1,1);  | 
L | 
 component truncation number  | 
K | 
 intensity cluster truncation number  | 
iter_max | 
 total number of iterations for which to run sampler  | 
warm_up | 
 number of iterations for which to burn-in or "warm-up" sampler  | 
thin | 
 number of iterations to thin by  | 
seed | 
 integer with which to initialize random number generator  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.