Skip to content

Commit b2ef585

Browse files
committed
small change to README
1 parent e4a864f commit b2ef585

File tree

4 files changed

+19
-22
lines changed

4 files changed

+19
-22
lines changed

README.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ mod <- compute_sequentially(
4646
smc_options = set_smc_options(n_particles = 100, n_particle_filters = 1)
4747
)
4848
49-
# Show model summary
50-
summary(mod)
49+
# Show model info
50+
mod
5151
```
5252

5353
### Posterior Summaries

README.md

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,19 @@ mod <- compute_sequentially(
3737
smc_options = set_smc_options(n_particles = 100, n_particle_filters = 1)
3838
)
3939

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
40+
# Show model info
41+
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
5753
```
5854

5955
### Posterior Summaries
@@ -65,18 +61,19 @@ We can visualize the posterior distributions of the parameters:
6561
plot(mod, parameter = "alpha")
6662
```
6763

68-
<img src="man/figures/README-posterior-alpha-1.png" width="100%" />
64+
<img src="man/figures/README-posterior-alpha-1.png" alt="" width="100%" />
6965

7066
``` r
7167
# Posterior distribution of rho (ranking positions)
7268
plot(mod, parameter = "rho", items = c(1, 2, 3))
7369
```
7470

75-
<img src="man/figures/README-posterior-rho-1.png" width="100%" />
71+
<img src="man/figures/README-posterior-rho-1.png" alt="" width="100%" />
7672

7773
## References
7874

79-
<div id="refs" class="references csl-bib-body hanging-indent">
75+
<div id="refs" class="references csl-bib-body hanging-indent"
76+
entry-spacing="0">
8077

8178
<div id="ref-10.1214/25-BA1564" class="csl-entry">
8279

7.51 KB
Loading
7.32 KB
Loading

0 commit comments

Comments
 (0)