Description Usage Arguments Author(s) See Also Examples

Simulating a mean zero Gaussian lagged response regression in the presence of autocorrelated residuals

1 2 3 |

`n` |
The number of data points to be simulated |

`beta` |
Regression coefficients |

`ind` |
Logical flag. If TRUE then observations are assumed to be independent. Otherwise they are generated from random AR(1) processes. In both cases, variables are assumed to be mutually independent and follow Gaussian distribution. |

`phi` |
Dynamic coefficient(s) |

`theta` |
Residuals coefficient(s) |

`var` |
Variance of the error term |

`n.z.coeffs` |
Number of zero coefficients if needed |

`shuffle` |
Logical flag. If TRUE shuffle coefficients. Otherwise data are grouped corresponded to non-zero and zero coefficients. |

`plot` |
Logical flag. Plot response |

Hamed Haselimashhadi <hamedhaseli@gmail.com>

`dregar2`

,
`dregar6`

,
`generateAR`

1 2 3 4 |

DREGAR documentation built on May 19, 2017, 8:26 p.m.

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

Please suggest features or report bugs in the GitHub issue tracker.

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.