getjagsdata function

Prepares data for JAGS