inspect the influence of a subject on the average (single electrode).

Share:

Description

This function returns a diagnostic plot to investigate the influence of a given ERP data frame on the grandaverage of a series of ERP data frames. A GUI is provided to explore the effect of removing a data frame (that is expected to be associated with a Subject) on the grandaverage. Two plots are superposed: the original grandaverage and the average removing the subject selected via the GUI.

Usage

1
2
3
 
	erp.infl(base, numbers, electrode, erplist=NULL,  startmsec=-200, 
	endmsec=1200, smo=NULL, outnumber=1, lwd=1, lty=1,  ...)

Arguments

base

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

numbers

the numbers of the subjects to be averaged by the function.

electrode

the electrode to be plotted.

erplist

a list containing the ERP data frames specified in base and numbers.

startmsec

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

endmsec

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

smo

the smoothing parameter to apply (see smooth.spline). Default is NULL and no smoothing is applied.

outnumber

The number of the subject that will be initially removed from the averaged (this value could be changed also via the GUI).

lwd

line width.

lty

line type.

...

further parameters to be passed to erp function called within erp.infl.

Details

The function requires the package rpanel

Value

The function returns a plot of a single electrode showing the influence of a subject on the grandaverage.

Author(s)

Giorgio Arcara

See Also

erp, link{scalp.infl}

Examples

1
2
3
4
5
6
7
data(ERPsets)

erp.infl(base="Exp1_word_subj", numbers=1:20, electrode="OZ", 
startmsec=-200, endmsec=1500, erplist=ERPsets)

# Notice that Subject 1 is clearly particularly influential
# for the average on OZ.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.