Hi LaurieF,
This works perfectly!! Thanks so much! I am trying to understand how the code works and may come back with questions. You really saved me here because I have to run these summaries for multiple thresholds and outcomes (not just mmse) on long datasets and it is all due in a very short amount of time!
I do owe you a beer!
Cheers!