Nice. Thanks!
- Bob
On 3/11/13 10:51 PM, Wayne wrote:
> I just tried generating my own test case:
>
> |
> sa <- arima.sim (list (ar=c(0.7), order=c(1, 0, 0)), 1000)
> |
>
> and get the official answer:
>
> |
> arima (sa, c(1, 0, 0), xreg=1:1000)
> |
>
> which yielded:
>
> ar1 intercept 1:1000
> 0.7164 0.0346 -1e-04
> s.e. 0.0220 0.2126 4e-04
>
>
> and what I got from STAN was:
>
> mean se_mean sd
> alpha 0.01980100 0.00171910 0.21660766
> beta -0.00008250 0.00000293 0.00037689
> kappa 0.72007884 0.00018809 0.02241440
>
> Which is pretty close. I haven't tested it exhaustively, and I'd recommend that before putting it into the manual, but I
> believe it's right, and you certainly have my permission. This is a great tool.
>
> On Monday, March 11, 2013 8:56:03 PM UTC-4, Bob Carpenter wrote:
>
> Cool. Can I borrow this for the manual, with attribution
> to you, of course? I ran out of steam before writing down
> a full ARMA model. Even better if you have an R program ot
> to simulate data or a public data set with a known answer
> I can include in the distro.
>