- n_particles
Integer specifying the number of particles to use in the
outer SMC loop. More particles generally improve approximation accuracy but
increase computational cost. Defaults to 1000.
- n_particle_filters
Integer specifying the initial number of particle
filters for each particle in the inner loop. This controls the granularity
of the latent rank estimation. Defaults to 50.
- max_particle_filters
Integer specifying the maximum number of particle
filters allowed. The algorithm can adaptively increase the number of
filters up to this limit when the acceptance rate is low. Defaults to
10000.
- resampling_threshold
Numeric specifying the effective sample size
threshold for triggering resampling. When the effective sample size falls
below this threshold, the particles are resampled to avoid degeneracy.
Defaults to n_particles / 2.
- doubling_threshold
Numeric threshold for particle filter doubling. If
the acceptance rate of the rejuvenation step falls below this threshold,
the number of particle filters is doubled (up to max_particle_filters)
to improve mixing. Should be between 0 and 1. Defaults to 0.2.
- max_rejuvenation_steps
Integer specifying the maximum number of
rejuvenation MCMC steps to perform. The rejuvenation step helps maintain
particle diversity. The algorithm stops early if the number of unique
particles exceeds half the total number of particles. Defaults to 20.
- metric
Character string specifying the distance metric to use for
comparing rankings. Options are "footrule" (default), "spearman",
"kendall", "cayley", "hamming", or "ulam". The choice of metric
affects the likelihood function in the Mallows model.
- resampler
Character string specifying the resampling algorithm.
Options are "multinomial" (default), "residual", "stratified", or
"systematic". Different resamplers have different variance properties.
- latent_rank_proposal
Character string specifying the proposal
distribution for latent ranks in the Metropolis-Hastings step. Options are
"uniform" (default) or "pseudo". The "pseudo" option can provide
better proposals for partial rankings.
- verbose
Logical indicating whether to print progress messages during
computation. Defaults to FALSE.
- trace
Logical specifying whether to save static parameters (alpha,
rho, cluster probabilities) at each timestep. This is useful for
diagnostic purposes but increases memory usage. Defaults to FALSE.
- trace_latent
Logical specifying whether to sample and save one
complete set of latent rankings for each particle at each timepoint. This
can be used to inspect the evolution of rankings over time but
substantially increases memory usage. Defaults to FALSE.