search for: speretti

Displaying 3 results from an estimated 3 matches for "speretti".

2010 May 24
6
switching elements of a vector
Hi, I would like to receive help for the following matter: If I'm dealing with a numeric vectors containing increasing elements. i.e. a<-c(1,2,2,2,2,3,3,3,4,4,4,5,5,6,7,7,7) There exist an efficient way to obtain an vector that indicates the position of the changing element of "a"? In this case it would be something like: index<-c(1,6,9,12,14,15) usually I'm used
2010 May 26
5
counts of a vector
Hi, I need help to find an efficient way to transform a vector like: a<-c(1,1,0,1,0,0,0,1,1,1,1,0,1,0,1,1) in a vector that counts only di 1 elements, like: b<-c(1,2,0,1,0,0,0,1,2,3,4,0,1,0,1,2) Thank you! -- View this message in context: http://r.789695.n4.nabble.com/counts-of-a-vector-tp2232047p2232047.html Sent from the R help mailing list archive at Nabble.com.
2010 Jul 01
2
s.e. of arima
Hi, I'm using the function arima() from the ts package. when the function gives me the output I can see the s.e. of the coefficients. However I cannot find a way to collect them in a object estimate<-arima(x, order=c(1,0,1)) estimate$se does not work in fact str(estimate) does not contain $se. How is it possible? The function compute and print that value but it is not the resulting