[Eeglablist] newtimef with a baseline that is 3 secs earlier (for 1sec) than the time-locking event

Francesco Marini francesco.pd at gmail.com
Sat Dec 30 10:42:56 PST 2017

```Hi Adam,

In this case you have three options:

1- time-lock to the beginning of the stimulus, baseline from -1000 to 0 and
then shift your time axis of 2000ms (this requires the stimulus duration to
be fixed)

2- use the complex numbers in tfdataStand, which are not baseline
corrected, to extract the measure of choice (ersp/itc) and apply the
baseline manually (this requires some minimal technical knowledge)

3- hire a grad student/postdoc who does the job for you (this requires the
capacity of keeping a grad student/postdoc for longer than a few months)

Let me know if you need help with #1 or #2. Unfortunately, I can't help
with #3.

Good luck,
Francesco

Virus-free.
www.avast.com

On Thu, Dec 28, 2017 at 11:25 AM, Aron, Adam <adamaron at ucsd.edu> wrote:

> Hi -
>
> I’m trying to do something a bit irregular with newtimef where I want at a
> baseline from earlier in the trial, not from the period immediately before
> the time-locking.
>
> My time-locking at time t=0 is to the END of a stimulus. But the stimulus
> is 2000 ms long. I want to time-lock to be at the end of the stimulus, but
> have the baseline be the 1000 ms BEFORE the stimulus begins.
>
> I tried:
>
> *    [erspTRIAL, itc, powbaseTRIAL, times, freqs, erspboot, itcboot,
> tfdataStand] = newtimef...*
> *        (EEG_TRIAL.icaact(IC,:,:), EEG_TRIAL.pnts, [EEG_TRIAL.xmin
> EEG_TRIAL.xmax]*1000, EEG_TRIAL.srate, 0,...*
> *        'cycles', [3 0.5], 'tlimits', [-3000 2000], 'freqs', [4 30],
> 'timesout', 800,...*
> *        'baseline',[-3000 -2000],...*
> *         'plotitc', 'off', 'plotersp', 'off','padratio', 8);*
>
> and this ran at least, but gave me a garbage-looking figure.
>
> I expect this is partly about the *EEG_TRIAL.xmin EEG_TRIAL.xmax, *but I
> also want to know if, in principle, this approach can work,
>
> thanks
>
> ---------------------------------------
> Professor, Department of Psychology
> University of California, San Diego
> Phone: 858 822 1096 <(858)%20822-1096> (office)
> www.aronlab.org
>
>
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.uc
> sd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu
>

--
Francesco Marini, Ph.D.
Postdoctoral Research Associate