stable.diff.fun: calculate stable difference in timepoints in ERP waveforms.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

An internal function to perform a series of t-tests (one for each timepoint) and filter for stable differences.

Usage

1
stable.diff.fun(res.log.mat, electrodes, crit.npoints, interval, startmsec, endmsec)

Arguments

res.log.mat

A logical matrix, results of mass.t.test

electrodes

the electrodes labels.

crit.npoints

Only sequences of consecutive significant timpoints during at least crit.npoints number of timepoints will be retained in the results.

interval

a vector with a pair of values indicating the interval (in milliseconds) to be plotted.

startmsec

the start time (in ms) of the ERP vector.

endmsec

the end time (in ms) of the ERP vector.

Details

This is an internal function called by mass.t.test. This function filters the results of a matrix with results, output of mass.t.test), excluding those significant results that not respect the requirements specified in crit.npoints. The number in crit.npoints specify how many consecutive significant results (in the same electrode), should occur to retain the signficant result. For example if crit.npoints=10, only sequence of at least 10 consecutively significant timepoints will be retained.

Value

A data.frame with the results of the t-tests specified.

Author(s)

Giorgio Arcara

See Also

mass.t.test

Examples

1
2
3
#########################
# INTERNAL FUNCTION (NO EXAMPLES)
#########################

erpR documentation built on June 7, 2019, 3 a.m.