[R] Creating several txt outputs

2009-02-18 Thread diego Diego
Dear R experts: I have a list (a very long one) and I need to create successively txt outputs (on diferent files ideally) for the data of each component of the list. How can I do this? Thanks in advance!! [[alternative HTML version deleted]] __

[R] lists on a script

2009-02-13 Thread diego Diego
Dear R experts, I have a problem with a function I wrote. The fuction looks like this: series<-function(x,s){ foo<-list(); ind3<-integer(); for (j in diff){ for (i in 1:(n-12)){ if (!(x[i,j]==0)&!(x[i+1,j]==0)&!(x[i+2,j]==0)&!(x[i+3,j]==0)&!(x[i+4,j]==0)&!(x[i+5,j]==0)&!(x[i+6,j]==0) &!(x[i+

[R] Forecasting function

2009-02-03 Thread diego Diego
Dear R-experts: Does anybody knows how the CI of the "forecast" (forecasting package) are calculated (at least in the ES and Arima cases)??? Thanks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] Outliers package function scores question

2009-02-02 Thread diego Diego
Dear R-experts, I'm having some doubts concernig the scores function of the "outliers" package. I donĀ“t understand the results when I select the p-value option on a sample, ie, when I use scores(x,"(method)",1). The help on the function says that the output are the p-values associatted to the samp

[R] plot slideshow

2009-01-28 Thread diego Diego
Dear R experts: I've seen that it's possible to make a sort of "slideshow" with several R-plots (each slide is activated by a click on the mouse). How can I put this on a R-script??? Regards. D. [[alternative HTML version deleted]] __ R-help

[R] retrieving variables values from a function

2009-01-27 Thread diego Diego
Hello experts! Is there a way to send an internal variable from a function to the workspace, besides the function output, of course Thanks!! D. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.

[R] error managment

2009-01-26 Thread diego Diego
Hello R experts! I'm running a FOR loop in which at every step an arima model is generated. The problem is some series produces numeric problems with optim. My question is if there is a way of telling to R that at every critical error of optim jumps to the next series instead of stopping the calcu

[R] how to modify an R built-in function?

2009-01-26 Thread diego Diego
Hello R experts! Last week I run in to a lot a problems triyng to fit an ARIMA model to a time series. The problem is that the internal process of the arima function call function "optim" to estimate the model parameters, so far so good... but my data presents a problem with the default method "BF

[R] Box Cox parameter for time series

2009-01-23 Thread diego Diego
Hello R-experts, I want to ask I anyone knows a way to obtain a suitable value for the parameter of the box-cox transformation for time series (aiming to an Arima fit). Adittionally, I need to implement this to a list with a lot of series (about 5300), so if the method is suitable for an FOR-ruti

[R] forecasting error?

2009-01-23 Thread diego Diego
Hello everybody! I have an ARIMA model for a time series. This model was obtained through an auto.arima function. The resulting model is a ARIMA(2,1,4)(2,0,1)[12] with drift (my time series has monthly data). Then I perform a 12-step ahead forecast to the cited model... so far so good... but when

[R] forecasting issue

2009-01-21 Thread diego Diego
Hello everybody! I have a problem when I try to perform a forecast of an ARIMA model produced by an auto.arima function. Here is what I'm doing: c<-auto.arima(fil[[1]],start.p=0,start.q=0,start.P=0,start.Q=0,stepwise=TRUE,stationary=FALSE,trace=TRUE) # fil[[1]] is time series of monthly data

[R] obtaining null components of a list

2009-01-21 Thread diego Diego
Hello everybody! I have a list of length 5000 whose components are (mostly) "ts" objects, but some these components are intentionally left empty, ie, they are "NULL" components of the list. My question is how can I get the position of these null components in a effective way (I'm trying to avoid a

[R] auto.arima forecasting issue

2009-01-18 Thread diego Diego
Hello everybody! I'm having this problem with the auto.arima function that i've not been able to solve. I use this function on time series that contains NA values, but every time that the resulting model contains drift I can't perform a forecasting (using forecast.Arima function). The printed erro

[R] storing several arima models

2009-01-16 Thread diego Diego
Hello everyone! I'm kind of a new R user and I'm trying to store several arima models (as arima models not as lists) in something (vector, matrix, whatever)... i've tried several things but nothing seems to work the way I need. Ideally I need a vector (or something) whose entries are Arima class