View source: R/rsa_functions.R
rsa | R Documentation |
Perform representational similarity analysis
rsa(x, comparisons, test = FALSE, ...)
x |
A list of CalmrExperiment objects |
comparisons |
A model-named list containing the model outputs to compare. |
test |
Whether to test the RSA via permutation test. Default = FALSE. |
... |
Additional parameters passed to |
A CalmrRSA object
The object returned by this function
can be later tested via its own test()
method.
# Comparing the associations in three models
exp <- data.frame(
Group = c("A", "B"),
P1 = c("!2(A)>(US)/1B>(US)", "!1(A)>(US)/2B>(US)")
)
models <- c("HD2022", "RW1972", "PKH1982")
parameters <- sapply(models, get_parameters, design = exp)
exp_res <- compare_models(exp,
models = models
)
comparisons <- list(
"HD2022" = c("associations"),
"RW1972" = c("associations"),
"PKH1982" = c("associations")
)
res <- rsa(exp_res, comparisons = comparisons)
test(res, n_samples = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.