generate.data function

Generate simulated data