<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:962227872;
        mso-list-type:hybrid;
        mso-list-template-ids:-240472074 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Dear Stephen, Elizabeth, and other colleagues,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Thank you for the helpful responses.  I have a follow-up question: Is there a way to either reference or subset EEG.data by bin?  I would like to compute MAD separately for each condition
 (denoted by bin), but I’m not sure how to do this, given that bins seem to be encoded in the event list but not the EEG.data structure.  Any advice on how I can add this information to the EEG.data structure, create another structure that has this information,
 or otherwise refer to it would be greatly appreciated!<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Laura<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">********************************************************<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">Laura M. Morett<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">Hilibrand Postdoctoral Fellow<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">Yale Child Study Center<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">230 S. Frontage Rd.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">New Haven, CT 06520<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">As of August 16, 2017:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">Assistant Professor of Educational Psychology<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">Educational Neuroscience Initiative<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">University of Alabama<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">Box 870231<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">Tuscaloosa, AL 35487-0231<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">Email: <a href="mailto:laura.morett@yale.edu"><span style="color:#0000E9">laura.morett@yale.edu</span></a><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:Calibri">Phone: (203) 737-4586<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-family:Calibri">Web: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lauramorett.strikingly.com_&d=CwMF-g&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=7RydtjFxlOLitiTKeuyufwjZVnuS2cr0LD3ZBHQd6QA&m=hcKHc9qk081CzOBRcCJRuXs-41-8mLMuX9gmiw_QG_g&s=UQlF7t1IaNyCaJW5l4lvUXFZvEYnMtD2_GIYvnLLIaE&e="><span style="color:#0000E9">http://lauramorett.strikingly.com/</span></a></span><span style="font-size:11.0pt;font-family:Calibri"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">Elizabeth Milne <e.milne@sheffield.ac.uk><br>
<b>Date: </b>Wednesday, May 3, 2017 at 6:38 AM<br>
<b>To: </b>"Morett, Laura" <laura.morett@yale.edu><br>
<b>Cc: </b>"eeglablist@sccn.ucsd.edu" <eeglablist@sccn.ucsd.edu><br>
<b>Subject: </b>Re: [Eeglablist] Trial-by-trial median absolute deviation (MAD) of amplitude and latency<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Hello Laura, <o:p></o:p></p>
<div>
<p class="MsoNormal">As far as I'm aware, EEGLAB does not have a function for computing MAD, but matlab has a function 'mad' that will do this. You just need to output the data that you're interested in to your matlab workspace and then run mad on this data.
 Typing 'help mad' into the matlab command line will provide you with information about how to use the function.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Best wishes,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Elizabeth<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 2 May 2017 at 06:21, Morett, Laura <<a href="mailto:laura.morett@yale.edu" target="_blank">laura.morett@yale.edu</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Dear colleagues,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">In order to obtain a measure of inter-trial variability within subjects, I would like to compute trial-by-trial median absolute deviation (MAD) of
 amplitude and latency within epochs.  Given that two published papers have used EEGLab to do this (citations below), I know it is possible to at least output data in a format that will allow computation of this measure, if not to compute it directly in EEGLab. 
 However, I am unsure of which function(s) to use to do this.  Any guidance anyone can provide would be greatly appreciated.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Many thanks,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Laura Morett</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Arazi, A., Censor, N., & Dinstein, I. (2017). Neural variability quenching predicts individual perceptual abilities. <i>Journal of Neuroscience</i>, <i>37</i>,
 97-109.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Milne, E. (2011). Increased intra-participant variability in children with autistic spectrum disorders: evidence from single-trial analysis of evoked
 EEG. <i>Frontiers in psychology</i>, <i>2</i>, 51.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
********************************************************<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
Laura M. Morett<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
Hilibrand Postdoctoral Fellow<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
Yale Child Study Center<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
230 S. Frontage Rd.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
New Haven, CT 06520<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
 <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
As of August 16, 2017:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
Assistant Professor of Educational Psychology<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
Educational Neuroscience Initiative<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
University of Alabama<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
Box 870231<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
Tuscaloosa, AL 35487-0231<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
 <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
Email: <a href="mailto:laura.morett@yale.edu" target="_blank"><span style="color:#0000E9">laura.morett@yale.edu</span></a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
Phone: <a href="tel:(203)%20737-4586" target="_blank">(203) 737-4586</a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Web: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lauramorett.strikingly.com_&d=CwMF-g&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=7RydtjFxlOLitiTKeuyufwjZVnuS2cr0LD3ZBHQd6QA&m=hcKHc9qk081CzOBRcCJRuXs-41-8mLMuX9gmiw_QG_g&s=UQlF7t1IaNyCaJW5l4lvUXFZvEYnMtD2_GIYvnLLIaE&e=" target="_blank"><span style="color:#0000E9">http://lauramorett.strikingly.com/</span></a><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
Eeglablist page: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__sccn.ucsd.edu_eeglab_eeglabmail.html&d=DwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=l0BRPHpU7TbMIsjnMykAjkdm4kZk3qRcOQvhXpyzfSg&m=hgJDidCHaZn-jLYGl_Z7seqG4KVVOyZ6kThV_KNkw-Q&s=X8sPIsoFEnWxj90JCva6auDFqiggz4wndCcOj5vK5ZY&e=" target="_blank">
http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">
eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">
eeglablist-request@sccn.ucsd.edu</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Elizabeth Milne<br>
Reader in Cognitive Neuroscience<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Department of Psychology<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Cathedral Court<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">1 Vicar Lane<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Sheffield<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">S1 2LT<o:p></o:p></p>
</div>
<p class="MsoNormal"> <br>
+44 (0) 114 222 6558<br>
 <br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.autismresearchlab.group.shef.ac.uk_&d=DwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=l0BRPHpU7TbMIsjnMykAjkdm4kZk3qRcOQvhXpyzfSg&m=hgJDidCHaZn-jLYGl_Z7seqG4KVVOyZ6kThV_KNkw-Q&s=KVby7v98TRXkYTwpDdt-tQqU9iiTXMPIVD6pYHd_sxE&e=" target="_blank">http://www.autismresearchlab.group.shef.ac.uk/</a><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>