grandaverage.se: calculate the standard error of grandaverage of ERP data...

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

Description

A function to average ERP objects, i.e. data frames with timepoints in rows, electrodes in columns and amplitude values in each cell. It is used to compute the grandaverage.se across several subjects, for plotting purposes.

Usage

1
2
grandaverage.se(base, numbers, electrodes="all", erplist = NULL, 
startmsec=NULL, endmsec=NULL,  NA.sub=TRUE, type="se")

Arguments

base

a string indicating the beginning of the name of the data.frame containing the ERP data.

numbers

the numbers of subjects to be averaged.

electrodes

a character vector indicating the electrodes on which perform the grandaverage.se. Default is "all", and the grandaverage.se is performed on all electrodes of the data frames.

startmsec

the start time (in ms) of the erpdf.

endmsec

the end time (in ms) of the erpdf.

erplist

a list containing ERP data frames.

NA.sub

In this case, a Warning is displayed.

type

currently the only type available is se, future version will include other possibilities.

Value

A data frame with the standard error of the mean calculated from the subjects specified by the combination of base and numbers.

Note

The function keeps track of the name of the objects used to calculated standard error in a comment.

Author(s)

Giorgio Arcara

See Also

grandaverage,grandaverage.se

Examples

1
2
3
4
5
data(erplistExample)
# compute the average of subjects 1 to 20 for the condition 
# specified by the string "Exp1_word_subj".
	
word=grandaverage.se("Exp1_word_subj", 1:20, erplist=erplistExample)

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