Re: [R] Table into a list

2012-02-28 Thread Alemtsehai Abate
Perhaps, the following does it as well. (d - data.frame(x1=letters[2*1:4 - 1], x2=letters[2*1:4])) c(t(d)) Alemtsehai Hello, I am looking for a way to transform an array into a list (or a string). My array has two columns 1 and 2, and I would like to create a list of the values.

Re: [R] linear interpolation of time series

2011-12-25 Thread Alemtsehai Abate
PM, Alemtsehai Abate abatea...@gmail.com wrote: Dear R users, I have two irregular time series say x and y. Each series is supposed to cover 20 years. The data looks, for instance: x-c(200,178, 330, 127, 420) ## only 5 observations out of the expected 20 annual values y-c(0.35,-0.18

[R] linear interpolation of time series

2011-12-24 Thread Alemtsehai Abate
Dear R users, I have two irregular time series say x and y. Each series is supposed to cover 20 years. The data looks, for instance: x-c(200,178, 330, 127, 420) ## only 5 observations out of the expected 20 annual values y-c(0.35,-0.18,-0.54,0.78,1.7,-1.1,0.2,1.9,0.49)### only 9 observations of

[R] serial.test

2011-12-12 Thread Alemtsehai Abate
Dear R users, I want to test for serial correlation in each equation of VAR. The multivariate version of this test, for a vector X of class VAR for instance is var.ser-serial.test(X,lags.pt=16,type=PT.adjusted) ### in the vars package Would any of you suggest me how to modify this to test for

[R] simulate AR(1) process

2011-05-05 Thread Alemtsehai Abate
Dear R users, May any of you tell me how to simulate data on: y_t = a+b*y_{t-1} + u_t where u_t~N(0,sigma^2), b1, and for some constant a. Many thanks Tsegaye tseg...@exeter.ac.uk [[alternative HTML version deleted]] __ R-help@r-project.org