rst function

Simulate spatial and temporal random effects