Basic function for running a multiverse analysis for a single data set
universe_cs(
cs1,
cs2,
data,
subj,
group = NULL,
include_bayes = TRUE,
include_mixed = FALSE,
phase = "acquisition",
dv = "scr",
print_output = TRUE,
exclusion = "full data",
cut_off = "full data",
correction = FALSE,
meta.effect = "d_to_eta2"
)
The column name(s) of the conditioned responses for the first conditioned stimulus
The column name(s) of the conditioned responses for the second conditioned stimulus
A data frame containing all the relevant columns for the analyses
The name of the column including the participant numbers. Unique numbers are expected
the name of the group, if included, default to NULL
Whether the Bayesian analyses should be run. Default to TRUE
Whether the mixed model results should be run. Default to FALSE
The conditioned phase that the analyses refer to. Accepted values are acquisition
, acq
, extinction
, or ext
name of the measured conditioned response. Default to "SCR"
Whether to print the output or not. Default set to TRUE
Name of the data reduction procedure used. Default to full data
cut off score
whether the Greenhouse-Geisser correction should be applied or not. Default to FALSE
How the meta-analytic effect should be computed.
A tibble with the following column names:
x: the name of the independent variable (e.g., cs)
y: the name of the dependent variable as this defined in the dv
argument
exclusion: see exclusion
argument
model: the model that was run (e.g., t-test)
controls: ignore this column for this test
method: the method used
p.value: the reported p-value
effect.size: the reported effect size
estimate: the estimate of the test run
statistic: the value of the test
conf.low: the lower confidence interval for the estimate
conf.high: the higher confidence interval for the estimate
framework: were the data analysed within a NHST or Bayesian framework?
data_used: a list with the data used for the specific test
In case of higher order interaction, only the highest order effect is shown.
In case the CSs include only 1 observation per participant, or of unequal numbers of CS trials, the function will return the warning ""Skipping ANOVA due to the number of trials for the cs1 and/or cs2."".
# Load data and define argument to be fed in universe_cs
data("example_data", package = "multifear")
example_data <- example_data[1:10, ]
cs1 <- paste0("CSP", 1:10)
cs2 <- paste0("CSM", 1:10)
subj = "id"
multifear::universe_cs(cs1, cs2, subj = subj, data = example_data, include_bayes = FALSE)
#> # A tibble: 4 × 20
#> x y exclusion cut_off model controls method p.value effect.size
#> <chr> <chr> <chr> <chr> <chr> <lgl> <chr> <dbl> <dbl>
#> 1 cs scr full data full data t-test NA great… 0.00244 0.577
#> 2 cs scr full data full data t-test NA two.s… 0.00488 0.577
#> 3 cs:time scr full data full data rep ANO… NA rep A… 0.0152 0.0296
#> 4 cs scr full data full data rep ANO… NA rep A… 0.00488 0.147
#> # … with 11 more variables: effect.size.lci <dbl>, effect.size.hci <dbl>,
#> # effect.size.ma <dbl>, effect.size.ma.lci <dbl>, effect.size.ma.hci <dbl>,
#> # estimate <dbl>, statistic <dbl>, conf.low <dbl>, conf.high <dbl>,
#> # framework <chr>, data_used <list>