[R] Why arima does not work when the time series is a costant?

2009-11-10 Thread Aijun
ind], start = start(x), frequency = f), seasonal) : time series has no or less than 2 periods" I was confused why arima does not work if my time series is a constant. It should be very simple - resulted model should be a constant with the value of 1. Thanks, Aijun. -- View this message i

[R] A Simple Question

2008-09-17 Thread Gao, Aijun
("schools.dat", header=TRUE) J <- nrow(schools) y <- schools$estimate sigma.y <- schools$sd data <- list ("J", "y", "sigma.y") inits <- function() {list (theta=rnorm(J,0,100), mu.theta=rnorm(1,0,100), sigma.theta=runif(1,0,100))} parameters <- c(&