Apply an ensemble of AR coefficients to one or multiple columns of an xts object in a rolling fashion.

1 |

`x` |
An xts object |

`coef` |
A list of numeric vectors of AR coefficients. First element in each vector corresponds to AR1. |

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.