cluster_permutation_tidiers {jlmerclusterperm} | R Documentation |
Tidiers for cluster permutation test objects
Description
Tidiers for cluster permutation test objects
Usage
## S3 method for class 'timewise_statistics'
tidy(x, ...)
## S3 method for class 'empirical_clusters'
tidy(x, ...)
## S3 method for class 'null_cluster_dists'
tidy(x, ...)
Arguments
x |
An object of class |
... |
Unused |
Value
A data frame
Examples
library(dplyr, warn.conflicts = FALSE)
# Specification object
spec <- make_jlmer_spec(
weight ~ 1 + Diet, filter(ChickWeight, Time <= 20),
subject = "Chick", time = "Time"
)
spec
# Method for `<timewise_statistics>`
empirical_statistics <- compute_timewise_statistics(spec)
class(empirical_statistics)
tidy(empirical_statistics)
reset_rng_state()
null_statistics <- permute_timewise_statistics(spec, nsim = 100)
class(null_statistics)
tidy(null_statistics)
# Method for `<empirical_clusters>`
empirical_clusters <- extract_empirical_clusters(empirical_statistics, threshold = 2)
class(empirical_clusters)
tidy(empirical_clusters)
# Method for `<null_cluster_dists>`
null_cluster_dists <- extract_null_cluster_dists(null_statistics, threshold = 2)
class(null_cluster_dists)
tidy(null_cluster_dists)
[Package jlmerclusterperm version 1.1.4 Index]