Skip to content
Prev 130289 / 398500 Next

help pleaseeeeeeeee

When I tried it on my Windows system,  I executed the script at least
4 times in succession before I got the error:
+ 1.7783313,0.2728676,-0.3273164),start=c(1978,3),frequency=4,end=c(1980,3))
Call:
ar(x = x, aic = TRUE, demean = F)


Order selected 0  sigma^2 estimated as  1.482
+ 1.7783313,0.2728676,-0.3273164),start=c(1978,3),frequency=4,end=c(1980,3))
Error in if (order > 0) coefs[order, 1:order] else numeric(0) :
  missing value where TRUE/FALSE needed
In addition: Warning messages:
1: In log(var.pred) : NaNs produced
2: In if (order > 0) coefs[order, 1:order] else numeric(0) :
  the condition has length > 1 and only the first element will be used
Call:
ar(x = x, aic = TRUE, demean = F)


Order selected 0  sigma^2 estimated as  1.482
Maybe it has something to do with random numbers that might be used in
the computation.
On Nov 23, 2007 4:13 PM, Steven McKinney <smckinney at bccrc.ca> wrote: