View source: R/sfclust-methods.R
update.sfclust | R Documentation |
This function continues the MCMC sampling of a sfclust
object based on previous results or
update the model fitting for a specified sample clustering if the argument sample
is
provided.
## S3 method for class 'sfclust'
update(
object,
niter = 100,
burnin = 0,
thin = 1,
nmessage = 10,
sample = NULL,
path_save = NULL,
nsave = nmessage,
...
)
object |
A |
niter |
An integer specifying the number of additional MCMC iterations to perform. |
burnin |
An integer specifying the number of burn-in iterations to discard. |
thin |
An integer specifying the thinning interval for recording results. |
nmessage |
An integer specifying the number of messages to display during the process. |
sample |
An integer specifying the clustering sample number to be executed.
The default is the last sample (i.e., |
path_save |
A character string specifying the file path to save the results. If
|
nsave |
An integer specifying how often to save results. Defaults to |
... |
Additional arguments (currently not used). |
This function takes the last state of the Markov chain from a previous
sfclust
execution and uses it as the starting point for additional MCMC
iterations. If sample
is provided, it simply udpates the within-cluster
models for the specified clustering sample
.
An updated sfclust
object with (i) new clustering samples if sample
is not
specified, or (ii) updated within-cluster model results if sample
is given.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.