Back to the main page.

Bug 3472 - SEM in error bars incorrect in ft_spike_plot_raster?

Status NEW
Reported 2019-02-05 15:56:00 +0100
Modified 2019-02-05 15:56:49 +0100
Product: FieldTrip
Component: spike
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Martin Vinck
URL:
Tags:
Depends on:
Blocks:
See also:

Stephen Whitmarsh - 2019-02-05 15:56:49 +0100

Hi, I might be wrong, but getting from variance to SEM is: SD / sqrt(n), i.e.: sqrt(variance) / sqrt(n). In line 196 of ft_Spike_plot_raster SEM is calculated as: sqrt(timelock.var(unitIndx,binSel)./timelock.dof(unitIndx,binSel)); Seems a sqrt is missing in denominator. What do you think?