prevalence: Activations prevalence.

View source: R/prevalence.R

prevalenceR Documentation

Activations prevalence.

Description

Activations prevalence.

Usage

prevalence(
  act_list,
  gamma_idx = 1,
  p_test = NULL,
  alpha = 0.05,
  correction = c("FWER", "FDR", "none")
)

Arguments

act_list

List of activations from activations. All should have the same sessions, fields, and brainstructures.

gamma_idx

If activations at multiple thresholds were computed, which threshold should be used for prevalence? Default: the first (lowest).

p_test

For inference: the expected baseline rate of activation for all data locations, under the null hypothesis. Default: NULL (do not perform hypothesis testing).

alpha

Significance level for inference. Default: .05.

correction

For the classical method only: Type of multiple comparisons correction: "FWER" (Bonferroni correction, the default), "FDR" (Benjamini Hochberg), or "none".

Value

A list containing the prevalences of activation, as a proportion of the results from act_list.


mandymejia/BayesfMRI documentation built on April 12, 2025, 3:44 p.m.