Skip to content

Commit

Permalink
edit readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yjunechoe committed Sep 7, 2023
1 parent 248f652 commit 7b1295d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
12 changes: 5 additions & 7 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,18 @@ chickweights_spec

Cluster-based permutation test with `clusterpermute()`:

```{r CPA}
```{r CPA, message = FALSE}
set_rng_state(123L)
clusterpermute(
chickweights_spec,
threshold = 2.5,
nsim = 100,
progress = FALSE
nsim = 100
)
```

Including random effects:

```{r chickweights_re_spec}
```{r chickweights_re_spec, message = FALSE}
chickweights_re_spec <- make_jlmer_spec(
formula = weight ~ 1 + Diet + (1 | Chick),
data = chickweights,
Expand All @@ -109,8 +108,7 @@ set_rng_state(123L)
clusterpermute(
chickweights_re_spec,
threshold = 2.5,
nsim = 100,
progress = FALSE
nsim = 100
)$empirical_clusters
```

Expand Down Expand Up @@ -148,7 +146,7 @@ calculate_clusters_pvalues(empirical_clusters, null_cluster_dists, add1 = TRUE)

Iterating over a range of threshold values:

```{r walk_threshold_steps}
```{r walk_threshold_steps, message = FALSE}
walk_threshold_steps(empirical_statistics, null_statistics, steps = c(2, 2.5, 3))
```

Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ set_rng_state(123L)
clusterpermute(
chickweights_spec,
threshold = 2.5,
nsim = 100,
progress = FALSE
nsim = 100
)
#> $null_cluster_dists
#> ── Null cluster-mass distribution (t > 2.5) ──────────── <null_cluster_dists> ──
Expand Down Expand Up @@ -158,8 +157,7 @@ set_rng_state(123L)
clusterpermute(
chickweights_re_spec,
threshold = 2.5,
nsim = 100,
progress = FALSE
nsim = 100
)$empirical_clusters
#> ── Empirical clusters (t > 2.5) ──────────────────────── <empirical_clusters> ──
#> Diet2
Expand Down
6 changes: 2 additions & 4 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7b1295d

Please sign in to comment.