<div dir="ltr"><div class="gmail-flex-1 gmail-overflow-hidden" style="border:0px solid rgb(217,217,227);box-sizing:border-box;overflow:hidden;color:rgb(0,0,0);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:medium"><div class="gmail-react-scroll-to-bottom--css-aqtrb-79elbk gmail-h-full gmail-dark:bg-gray-800" style="border:0px solid rgb(217,217,227);box-sizing:border-box;height:563.333px"><div class="gmail-react-scroll-to-bottom--css-aqtrb-1n7m0yu" style="border:0px solid rgb(217,217,227);box-sizing:border-box;height:563.333px;overflow-y:auto;width:1020px"><div class="gmail-flex gmail-flex-col gmail-text-sm gmail-dark:bg-gray-800" style="border:0px solid rgb(217,217,227);box-sizing:border-box;display:flex;font-size:0.875rem;line-height:1.25rem"><div class="gmail-group gmail-w-full gmail-text-token-text-primary gmail-border-b gmail-border-black/10 gmail-gizmo:border-0 gmail-dark:border-gray-900/50 gmail-gizmo:dark:border-0 gmail-bg-gray-50 gmail-gizmo:bg-transparent gmail-dark:bg-[#444654] gmail-gizmo:dark:bg-transparent" style="border-width:0px 0px 1px;border-style:solid;border-color:rgba(0,0,0,0.1);box-sizing:border-box;width:1012px"><div class="gmail-p-4 gmail-justify-center gmail-text-base gmail-md:gap-6 gmail-md:py-6 gmail-m-auto" style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:auto;padding:1.5rem 1rem;font-size:1rem;line-height:1.5rem"><div class="gmail-flex gmail-flex-1 gmail-gap-4 gmail-text-base gmail-mx-auto gmail-md:gap-6 gmail-md:max-w-2xl gmail-lg:max-w-[38rem] gmail-xl:max-w-3xl gmail-}" style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-left:auto;margin-right:auto;display:flex;font-size:1rem;line-height:1.5rem;max-width:48rem"><div class="gmail-relative gmail-flex gmail-w-[calc(100%-50px)] gmail-flex-col gmail-gap-1 gmail-md:gap-3 gmail-lg:w-[calc(100%-115px)]" style="border:0px solid rgb(217,217,227);box-sizing:border-box;display:flex"><div class="gmail-flex gmail-flex-grow gmail-flex-col gmail-gap-3 gmail-max-w-full" style="border:0px solid rgb(217,217,227);box-sizing:border-box;display:flex;max-width:100%"><div class="gmail-min-h-[20px] gmail-flex gmail-flex-col gmail-items-start gmail-gap-3 gmail-overflow-x-auto gmail-whitespace-pre-wrap gmail-break-words" style="border:0px solid rgb(217,217,227);box-sizing:border-box;display:flex;min-height:20px;overflow-x:auto"><div class="gmail-markdown gmail-prose gmail-w-full gmail-break-words gmail-dark:prose-invert gmail-light" style="border:0px solid rgb(217,217,227);box-sizing:border-box;max-width:none;font-size:1rem;line-height:1.75;width:653px"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px">Hello everyone,</p><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px">I am Chengyuan Wu, and I appreciate any guidance you can provide on this matter. Recently, I encountered an issue regarding the cluster-based permutation test. I am utilizing a mixed linear model to fit EEG data at each electrode and each time point using a trial-by-trial variable (probability of expected reward) inferred from a Bayesian model. The subject number is set as a random intercept, and data from all subjects are fed into each mixed linear model simultaneously. My EEG data dimension is 102 electrodes x 500 time points, leading me to fit 51,000 mixed linear models and test the significance of the fixed slope (t-test). Previously, I've been applying FDR correction across the 500 time points for each electrode, but I believe a cluster-based permutation test might be a more robust approach. I've gone through the tutorials on FieldTrip, but they seem to primarily cater to ERP data driven by categorical variables.</p><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px">I have two main questions:</p><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px"><span style="font-size:1rem">1.Does FieldTrip offer a standard method for multiple comparison correction using cluster-based permutation tests specifically for mixed linear models?</span></p><ol style="border:0px solid rgb(217,217,227);box-sizing:border-box;list-style:none;margin:1.25em 0px;padding:0px;display:flex"><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:0px;margin-top:0px;padding-left:0.375em;display:block;min-height:28px"><br></li><li style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-bottom:0px;margin-top:0px;padding-left:0.375em;display:block;min-height:28px">2.If there isn't a standard method, has anyone come across literature where a similar approach of cluster-based permutation tests for mixed linear models has been employed? If so, could you please share those references?</li></ol><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px">Thank you for your assistance!</p><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px">Best regards,
Chengyuan Wu
School of Psychology, South China Normal University</p></div></div></div><div class="gmail-flex gmail-justify-between gmail-lg:block" style="border:0px solid rgb(217,217,227);box-sizing:border-box"><div class="gmail-text-gray-400 gmail-flex gmail-self-end gmail-lg:self-center gmail-justify-center gmail-mt-2 gmail-gap-2 gmail-md:gap-3 gmail-lg:gap-1 gmail-lg:absolute gmail-lg:top-0 gmail-lg:translate-x-full gmail-lg:right-0 gmail-lg:mt-0 gmail-lg:pl-2 gmail-visible" style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-top:0px;display:flex;padding-left:0.5rem"><button class="gmail-flex gmail-ml-auto gmail-gap-2 gmail-rounded-md gmail-p-1 gmail-hover:bg-gray-100 gmail-hover:text-gray-700 gmail-dark:text-gray-400 gmail-dark:hover:bg-gray-700 gmail-dark:hover:text-gray-200 gmail-disabled:dark:hover:text-gray-400" style="border-width:0px;border-style:solid;border-color:rgb(217,217,227);font-family:inherit;font-size:16px;font-weight:inherit;line-height:inherit;margin:0px 0px 0px auto;padding:0.25rem;background-image:none;display:flex;border-radius:0.375rem"></button><div class="gmail-flex gmail-gap-1" style="border:0px solid rgb(217,217,227);box-sizing:border-box;display:flex"><button class="gmail-p-1 gmail-rounded-md gmail-hover:bg-gray-100 gmail-hover:text-gray-700 gmail-dark:text-gray-400 gmail-dark:hover:bg-gray-700 gmail-dark:hover:text-gray-200 gmail-disabled:dark:hover:text-gray-400" style="border-width:0px;border-style:solid;border-color:rgb(217,217,227);font-family:inherit;font-size:16px;font-weight:inherit;line-height:inherit;margin:0px;padding:0.25rem;background-image:none;border-radius:0.375rem"></button><button class="gmail-p-1 gmail-rounded-md gmail-hover:bg-gray-100 gmail-hover:text-gray-700 gmail-dark:text-gray-400 gmail-dark:hover:bg-gray-700 gmail-dark:hover:text-gray-200 gmail-disabled:dark:hover:text-gray-400" style="border-width:0px;border-style:solid;border-color:rgb(217,217,227);font-family:inherit;font-size:16px;font-weight:inherit;line-height:inherit;margin:0px;padding:0.25rem;background-image:none;border-radius:0.375rem"></button></div></div></div></div></div></div></div><div class="gmail-h-32 gmail-md:h-48 gmail-flex-shrink-0" style="border:0px solid rgb(217,217,227);box-sizing:border-box;height:12rem"></div><button class="gmail-cursor-pointer gmail-absolute gmail-right-6 gmail-bottom-[124px] gmail-md:bottom-[180px] gmail-lg:bottom-[120px] gmail-z-10 gmail-rounded-full gmail-border gmail-border-gray-200 gmail-bg-gray-50 gmail-text-gray-600 gmail-dark:border-white/10 gmail-dark:bg-white/10 gmail-dark:text-gray-200" style="border-width:1px;border-style:solid;font-family:inherit;font-size:14px;font-weight:inherit;line-height:inherit;margin:0px;padding:0px;background-image:none;border-radius:9999px"></button></div></div></div></div><div class="gmail-absolute gmail-bottom-0 gmail-left-0 gmail-w-full gmail-border-t gmail-md:border-t-0 gmail-dark:border-white/20 gmail-md:border-transparent gmail-md:dark:border-transparent gmail-md:bg-vert-light-gradient gmail-bg-white gmail-dark:bg-gray-800 gmail-md:!bg-transparent gmail-dark:md:bg-vert-dark-gradient gmail-pt-2 gmail-md:pl-2 gmail-md:w-[calc(100%-.5rem)]" style="border:0px solid transparent;box-sizing:border-box;padding-top:0.5rem;background-image:linear-gradient(rgba(255,255,255,0) 13.94%,rgb(255,255,255) 54.73%);padding-left:0.5rem;color:rgb(0,0,0);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:medium;background-color:transparent"><form class="gmail-stretch gmail-mx-2 gmail-flex gmail-flex-row gmail-gap-3 gmail-last:mb-2 gmail-md:mx-4 gmail-md:last:mb-6 gmail-lg:mx-auto gmail-lg:max-w-2xl gmail-xl:max-w-3xl" style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin-left:auto;margin-right:auto;display:flex;max-width:48rem"><div class="gmail-relative gmail-flex gmail-h-full gmail-flex-1 gmail-items-stretch gmail-md:flex-col" style="border:0px solid rgb(217,217,227);box-sizing:border-box;display:flex;height:110.667px"><div style="border:0px solid rgb(217,217,227);box-sizing:border-box"><div class="gmail-h-full gmail-flex gmail-ml-1 gmail-md:w-full gmail-md:m-auto gmail-md:mb-4 gmail-gap-0 gmail-md:gap-2 gmail-justify-center" style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:auto auto 1rem;display:flex;height:37.3333px;width:768px"><br class="gmail-Apple-interchange-newline"></div></div></div></form></div><div dir="auto"></div>
</div>