Description Usage Arguments Value Examples
View source: R/optionclasses.R
This function allows to create a new
strategycat
object. This function
needs a data matrix as mandatory argument.
1 2 3 | strategycat(data, nb_init = 5,
stop_criterion = 20 * ncol(data),
partition = partitioncat(data))
|
data |
Input data as matrix of non-zero integers. |
nb_init |
Integer of the number of times where a MCMC chain is trating. By default 5 MCMC chains are initializated. |
stop_criterion |
Integer corresponding to the number of successive iterations of the MCMC chain where if no best model are fund then the algorithm is stopped. By default it takes the values of 20x d. |
partition |
Vector of integer. The element j takes
the values of the block where the variable j is affected
for the initialization of the MCMC chains for all the
classes. By default the function
|
Return an object of strategycat
class.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Simple example with binary data i
data("dentist")
#creation of a strategycat object with the constructor by default
defaultstrategycat <- strategycat(dentist)
#presentation of the adjustment parameters of the strategycat object
summary(defaultstrategycat)
#creation of new object strategycat
newstrategycat <- strategycat(dentist, nb_init=100, stop_criterion=10, partition=c(1,2,3,1,2))
#presentation of the new object
summary(newstrategycat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.