pERP_difference: Calculate t-tests for pERPs

Description Usage Arguments Value

View source: R/pERP_difference.R

Description

This function will take in two comparison groups.

Usage

1
2
3
4
5
6
7
8
9
pERP_difference(
  scores,
  electrode,
  task1,
  group1 = "Overall",
  task2 = task1,
  group2 = group1,
  double_difference = FALSE
)

Arguments

scores

The dataframe with all of the individual weights.

electrode

A string of the electrode for testing.

task1

A string of the first task for comparison.

group1

A string of the first treatment/diagnosis group to test. If "Overall", all of the individuals will be averaged.

task2

A string of the second task for comparison, set to the same value as task1 by default.

group2

A string of the second treatment/diagnosis group to test. If "Overall", all of the individuals will be averaged.

double_difference

A logical to contrast task1 - task2. Use in cases such as correct - incorrect.

Value

A dataframe of t-test results


emjcampos/pERPred documentation built on June 23, 2021, 6:18 p.m.