This function generates replicated data sets based on estimated parameters (given or from posterior samples).

1 2 3 |

`N.sim` |
the number of replicated data sets to be simulated |

`loc` |
a |

`L` |
a vector of length n; it indicates the time duration during which the Poisson counts are accumulated, or the total number of trials for Binomial response |

`X` |
a |

`rho.family` |
take the value of |

`Y.family` |
take the value of |

`res.m` |
a list with elements containing the posterior samples of latent variables and parameters for observed locations |

`est` |
take the value of |

`beta` |
a value which indicates the estimation for |

`sigma` |
a value which indicates the estimation for |

`phi` |
a value which indicates the estimation for |

`k` |
a value which indicates the estimation for |

A *n \times N.sim* matrix of replicated data sets.

Liang Jing ljing918@gmail.com

`repYpost`

, `simData`

.

1 2 3 4 5 6 7 8 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.