AM_mcmc_refit {AntMAN} | R Documentation |
Performs a Gibbs sampling reusing previous configuration
Description
Similar to AM_mcmc_fit
, the AM_mcmc_refit
function performs a Gibbs sampling in order to estimate
a mixture. However parameters will be reused from a previous result from AM_mcmc_fit
.
Usage
AM_mcmc_refit(y, fit, fixed_clustering, mcmc_parameters = AM_mcmc_parameters())
Arguments
y |
input data, can be a vector or a matrix. |
fit |
previous output from |
fixed_clustering |
is a vector CI of cluster assignment that will remain unchanged for every iterations. |
mcmc_parameters |
is a configuration list defined by |
Details
In practice this function will call AM_mcmc_fit(y, fixed_clustering = fixed_clustering, ...); with the same parameters as previously specified.
Value
The return value is an AM_mcmc_output
object.
Examples
y = AM_sample_unipois()$y
fit = AM_mcmc_fit( y ,
AM_mix_hyperparams_unipois (alpha0=2, beta0=0.2),
mcmc_parameters = AM_mcmc_parameters(niter=20, burnin=0, thin=1, verbose=0))
eam = AM_coclustering(fit)
cluster = AM_salso(eam, "binder")
refit = AM_mcmc_refit(y , fit, cluster,
mcmc_parameters = AM_mcmc_parameters(niter=20, burnin=0, thin=1, verbose=0));
[Package AntMAN version 1.1.0 Index]