Skip to content

Commit e4a864f

Browse files
Copilotosorensen
andcommitted
Remove tau plot and use summary instead of print
Co-authored-by: osorensen <21175639+osorensen@users.noreply.github.com>
1 parent 996e2ef commit e4a864f

File tree

3 files changed

+19
-27
lines changed

3 files changed

+19
-27
lines changed

README.Rmd

Lines changed: 2 additions & 7 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-
# Print model summary
50-
print(mod)
49+
# Show model summary
50+
summary(mod)
5151
```
5252

5353
### Posterior Summaries
@@ -59,11 +59,6 @@ We can visualize the posterior distributions of the parameters:
5959
plot(mod, parameter = "alpha")
6060
```
6161

62-
```{r posterior-tau}
63-
# Posterior distribution of tau (precision parameter)
64-
plot(mod, parameter = "tau")
65-
```
66-
6762
```{r posterior-rho}
6863
# Posterior distribution of rho (ranking positions)
6964
plot(mod, parameter = "rho", items = c(1, 2, 3))

README.md

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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)
7572
plot(mod, parameter = "rho", items = c(1, 2, 3))
-9.71 KB
Binary file not shown.

0 commit comments

Comments
 (0)