Description Usage Arguments Value
A C++ accelerated version of sugsnewclustMarg
1 2 | sugsnewclustMargcpp(x, i, D, phi, betaHat, mu_0, nu_0, S_0, lambda_0,
intfeature)
|
x |
A numeric vector containing data of the observation |
i |
An integer specifying the current iteration of SUGS algorithm |
D |
An integer specifiying the number of variables |
phi |
A numeric matrix containing the weights for the dirichlet hyperpiors |
betaHat |
A numeric vector containing the grid of hyperpriors for the dirichlet concentration parameter |
mu_0 |
The mean hyperparameter, default is the column means of the data matrix. |
nu_0 |
The degrees of freedom hyperparameter, the default value is |
S_0 |
The scale hyperparamter, the default value is a tenth of the column variance of the data matrix. |
lambda_0 |
The variance of the Guassian mean prior, the dafault value is |
intfeature |
A binary vector of feature which are parition as irrelevant (0) or relevant (1). |
The unnormalised probability of belong to any of the currently unoccupied clusters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.