[R] predict

2011-04-14 Thread Serdar Akin
Hi I'm trying to forecast an zoo-object the following exempel of code:: "dynlm(y_t = 1+ L(y_t, 1:5}}" but I cannot use predict() nor forecast() to make an forecast of the object. Regard Serdar [[alternative HTML version deleted]] __ R-help@r

[R] Cointegration test of panel data

2011-04-09 Thread Serdar Akin
Hi Does anyone know if there's a package for unit-root and cointegration test in R? Regards Serdar [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the postin

[R] break

2010-12-11 Thread Serdar Akin
Hi I'm trying to utilize the break command for breaking the loop when the p-value is less than 10 per cent using the urca package. But it does not break the loop, anyone that can help me? library(urca) set.seed(1) a1 <- runif(100) lag.max <- function(object, n = 12){ matris <- matrix(NA, nrow

[R] Combind two different vector

2010-11-27 Thread Serdar Akin
Hi I'm trying two combine two vectors that have different lengths. This without recursive the shorter one. E.g., a <- seq(1:3) b <- seq(1:6) Thanks in advance Serdar [[alternative HTML version deleted]] __ R-help@r-project.org mailing list h

[R] Creating timeSeries

2010-08-06 Thread Serdar Akin
Hi I want to create a TimeSeries object with already defined dates (in the first vector) so that all the data are coerced as a time series object with the dates as they are. Is there anyone that have an idea what to do? 2010-07-07 3.900833 3.176667 2.754167 2.045833 1.820833 2010-04-21 4.256667