getnmadata function

Prepares NMA data for JAGS