estim_diff {neuroUp}R Documentation

Estimate differences (unstandardized and Cohen's d)

Description

estim_diff determines point estimate, SD and SE, 95% Credibility Intervals, and interval width, for both differences in raw means and Cohen's d's for multiple sample sizes

Usage

estim_diff(data, vars_of_interest, sample_size, k = 50, name = "")

Arguments

data

Dataframe with the data to be analyzed

vars_of_interest

Vector containing the names of the variables to be compared on their means: c("var1", "var2")

sample_size

The range of sample size to be used min:max

k

The number of permutations to be used for each sample size. Defaults to 50

name

The title of the dataset or variables to be displayed with the figure. Defaults to ""

Value

Examples

data_feedback <- feedback
estim_diff(data_feedback,
  c("mfg_learning", "mfg_application"), 20:71,
  10, "Feedback middle frontal gyrus")

[Package neuroUp version 0.3.1 Index]