SPM does have a built-in mixed-effect model in SPM12, but I have not used it. I believe it combines the 1st and 2nd level analysis.

If you want a more traditional lme approach using the 1st-level estimates, then you will need to use R or the LME tool in Freesurfer.

Best Regards, Donald McLaren
=================
D.G. McLaren, Ph.D.
Research Fellow, Department of Neurology, Massachusetts General Hospital and
Harvard Medical School
Postdoctoral Research Fellow, GRECC, Bedford VA
Website: http://www.martinos.org/~mclaren
Office: (773) 406-2464
=====================
This e-mail contains CONFIDENTIAL INFORMATION which may contain PROTECTED
HEALTHCARE INFORMATION and may also be LEGALLY PRIVILEGED and which is
intended only for the use of the individual or entity named above. If the
reader of the e-mail is not the intended recipient or the employee or agent
responsible for delivering it to the intended recipient, you are hereby
notified that you are in possession of confidential and privileged
information. Any unauthorized use, disclosure, copying or the taking of any
action in reliance on the contents of this information is strictly
prohibited and may be unlawful. If you have received this e-mail
unintentionally, please immediately notify the sender via telephone at (773)
406-2464 or email.

On Sun, Jun 28, 2015 at 2:29 PM, G Ch <[log in to unmask]> wrote:
Dear SPM experts,

I have fmri data on a group of 21 subjects. Each subject performed tasks across 8 different conditions. I would like to perform a linear mixed effects model on the activation levels in a certain area in the 8 different tasks as well as on the error rates. Does anyone know how can I proceed?

Best regards,

George