Random effects GLM

The random effects General Linear Model can be scripted in the following way:

 

 

Before running the function, declare the variables docVMRname and mdmFileName with the var keyword and give them the proper value.