Number of Components | R Documentation |
Search for the best number of components with non-parametric and parametric criterions
g.search(data, g = NULL, family = NULL, lim.em = 40, plot.it = TRUE, col.wss = "navy", col.ic = c("orange", "red"), ...)
data |
vector or list containing the sample. |
g |
vector with the numbers of components. |
family |
parametric family to be used. |
lim.em |
limit of EM Iterations. |
plot.it |
logical; if TRUE (default) a graph is shown. |
col.wss |
a colour to be used in the wss curve. |
col.ic |
a colour to be used in the information criterion curve. |
... |
further arguments and graphical parameters passed to plot. |
CASTRO, M. O.; MONTALVO, G. S. A.
## Generating a sample data = rnorm_mix(2000, c(.5, .5), c(1, 9), c(1, 2)) ## The histogram of the sample data$plot ## Finding the number of components g.search(data, family = "Normal")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.