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
> x.new[time(x)] <- x
>
> na.approx(x.new)
>
> Michael
>
> On Sat, Dec 24, 2011 at 5:39 PM, Alemtsehai Abate
> wrote:
> > Dear R users,
> >
> > I have two irregular time series say x and y. Each series is supposed to
> > cover 20 years. The data
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
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 fo
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), b<1, and for some constant a.
Many thanks
Tsegaye
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://
5 matches
Mail list logo