Description Usage Arguments Details Value Author(s) See Also Examples
Simultaneously fitting MBASIC model for different numbers of clusters.
1 | MBASIC.full(J = NULL, struct = NULL, out = NULL, ncores = 1, ...)
|
J |
A vector of the numbers of clusters to be identified. |
struct |
A list of K by J matrix indicating the structures of each cluster. Default: NULL. |
out |
The prefix of the file names to write model output information. Default: NULL, when the information is written to the R output. |
ncores |
The number of CPUs to be used in parallele. Default: 1. |
... |
Other parameters that are passed to |
This function fits MBASIC models with different numbers of clusters and/or different structures in parallel.
A list object including the following fields:
allFits | A list of MBASICFit objects with different numbers of clusters and/or structures. |
BestFit | The best model with minimum BIC. |
Time | The time used for the model fitting. |
Chandler Zuo zuo@stat.wisc.edu
1 2 3 4 | ## Simulate a dataset
dat.sim <- MBASIC.sim(xi = 2, family = "lognormal", I = 1000, fac = rep(1:10, each = 2), J = 3, S = 3, zeta = 0.1)
## Fit the model
dat.sim.fit <- MBASIC.full(Y = dat.sim$Y, S = 3, fac = rep(1:10, each = 2), J = 3:5, maxitr = 3, para = NULL, family = "lognormal", method = "MBASIC", zeta = 0.1, tol = 1e-6, tol.par = 0.001)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.