[R] acf for a univariate time series in a data frame

2009-10-08 Thread CJ Rubio

hi everyone!

i want to check the autocorrelation function for a univariate time series
(streamflow) in a data frame as below:

 DF - read.table(D:/file path)
 DF

year  jan  feb  mar  apr ..   dec
1966   0.504   0.406   0.740   0.241   0.429
1967   0.683   0.529   0.780   0.443   0.503
.
.
.
.

what i first tried is:
acf (DF, plot = TRUE)

the resulting plot is correlation between each month ( jan, jan and feb, feb
and march).

what i need is a correlation that would help me find out which lag would be
the most significant. i know i am missing out something simple here. please
bear with me.

should i transform my data frame into a vector of series:

 DF

01/1966   0.504
02/1966   0.406
03/1966   0.740



before i do the command
acf(DF, plot = TRUE)???
thanks in advance!
-- 
View this message in context: 
http://www.nabble.com/acf-for-a-univariate-time-series-in-a-data-frame-tp25799751p25799751.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] acf for a univariate time series in a data frame

2009-10-08 Thread CJ Rubio

*additional:
the lags i am expecting is in months.. since i am trying to predict monthly
streamflow.

thanks again
-- 
View this message in context: 
http://www.nabble.com/acf-for-a-univariate-time-series-in-a-data-frame-tp25799751p25799784.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.