@@ -37,19 +37,23 @@ mod <- compute_sequentially(
3737 smc_options = set_smc_options(n_particles = 100 , n_particle_filters = 1 )
3838)
3939
40- # Print model summary
41- print(mod )
42- # > BayesMallowsSMC2 Model
43- # > ======================
44- # >
45- # > Number of particles: 100
46- # > Number of timepoints: 100
47- # > Number of items: 5
48- # > Number of clusters: 1
49- # >
50- # > Log marginal likelihood: -472.34
51- # > Final ESS: 63.55
52- # > Resampling events: 5/100
40+ # Show model summary
41+ summary(mod )
42+ # > Length Class Mode
43+ # > alpha 100 -none- numeric
44+ # > rho 500 -none- numeric
45+ # > tau 100 -none- numeric
46+ # > cluster_probabilities 0 -none- numeric
47+ # > ESS 100 -none- numeric
48+ # > resampling 100 -none- numeric
49+ # > n_particle_filters 100 -none- numeric
50+ # > importance_weights 100 -none- numeric
51+ # > log_marginal_likelihood 1 -none- numeric
52+ # > alpha_traces 0 -none- list
53+ # > rho_traces 0 -none- list
54+ # > tau_traces 0 -none- list
55+ # > log_importance_weights_traces 0 -none- list
56+ # > latent_rankings_traces 0 -none- list
5357```
5458
5559### Posterior Summaries
@@ -63,13 +67,6 @@ plot(mod, parameter = "alpha")
6367
6468<img src =" man/figures/README-posterior-alpha-1.png " width =" 100% " />
6569
66- ``` r
67- # Posterior distribution of tau (precision parameter)
68- plot(mod , parameter = " tau" )
69- ```
70-
71- <img src =" man/figures/README-posterior-tau-1.png " width =" 100% " />
72-
7370``` r
7471# Posterior distribution of rho (ranking positions)
7572plot(mod , parameter = " rho" , items = c(1 , 2 , 3 ))
0 commit comments