Learn R Programming

EZFragility (version 1.0.3)

estimateSOZ: Find Serzure Onset Zone

Description

The function estimates the seizure onset zone (SOZ). For each row, it calculates the maximum, minimum, or mean of row. The rows with the highest values are considered as the SOZ.

Usage

estimateSOZ(x, method = c("mean", "max", "min"), proportion = 0.1, ...)

Value

A vector of electrode names, or indices if the electrode names are NULL

Arguments

x

Fragility object

method

Character. The method to use to find the onset zone. Must be one of 'max', 'min', or "mean"

proportion

Numeric. The proportion of electrodes to consider as the onset zone. The electrode number will be rounded to the nearest integer.

...

Additional arguments