Displaying 20 results from an estimated 30000 matches similar to: "running "acf""
2002 May 08
1
ts acf accessing to values
Hi,
I don't quite understant how can I access to the acf values from the
list produced by the acf function
Example:
library(ts)
t <- acf(ts.union(ts(1:10), ts(11:20)))
t$acf
> tmp$acf
, , 1
[,1] [,2]
[1,] 1.00000000 1.00000000
[2,] 0.70000000 0.70000000
[3,] 0.41212121 0.41212121
[4,] 0.14848485 0.14848485
[5,] -0.07878788 -0.07878788
[6,] -0.25757576
1999 Jul 19
9
time series in R
Time Series functions in R
==========================
I think a good basic S-like functionality for library(ts) in base R
would include
ts class, tsp, is.ts, as.ts
plot methods
start end window frequency cycle deltat
lag diff aggregate
filter
spectrum, spec.pgram, spec.taper, cumulative periodogram, spec.ar?
ar -- at least univariate by Yule-Walker
arima -- sim, filter, mle, diag, forecast
2001 Nov 19
2
acf mis-feature (PR#1177)
Full_Name: Hiroyuki Kawakatsu
Version: 1.3.1
OS: win2k
Submission from: (NULL) (130.158.140.105)
the lag labels in the acf plot is screwed when the ts frequency>1.
try, for example,
#acf mis-feature
x <- ts(rnorm(200), frequency=4);
acf(x,lag.max=24);
h.
> version
_
platform i386-pc-mingw32
arch x86
os Win32
system x86, Win32
2010 Nov 07
1
When using ACF, receive error: no applicable method for 'ACF' applied to an object of class "c('double', 'numeric')"
I am guessing this is a very simple question, but this is only my second day
with R so it is all still a bit imposing.
I am trying to run an autocorrelation.
I imported a CSV file, which has one column labeled "logistic".
I ran the command:
ACF(data$logistic,maxLag=10)
However, I received the error:
Error in UseMethod("ACF") :
no applicable method for 'ACF'
2000 Feb 11
1
Help Help!
Hello! I have two questions.
First of all, I have a problem dealing with acf
(Autocovariance function) and need help. First I
defined a time series, x, which is a vector created by
x <- ts(rnorm(200)). So I plugged the series directly
into the acf function, acf(x) and an error message
popped up as:
Error in .C("acf", as.double(x), as.integer(sampleT),
as.integer(nser), :
2008 Aug 06
1
using acf() for multiple columns
Hi everyone,
I'm trying to use the acf() function to calculate the autocorrelation of
each column in a matrix. The trouble is that I can only seem to get the
function to work if I extract the data in the column into a separate matrix
and then apply the acf() function to this column.
I have something like this: acf(mat,lag.max=10,na.action=na.pass)
...but I would really like to apply the
2006 Oct 02
1
CCF and ACF
Dear all,
given two numeric vectors x and y, the ACF(x) at lag k is
cor(x(t),x(t+k)) while the CCF(x,y) at lag k is cor(x(t),y(t-k)). See
below for a simple example.
> set.seed(1)
> x <- rnorm(10)
> y <- rnorm(10)
> x
[1] -0.6264538 0.1836433 -0.8356286 1.5952808 0.3295078 -0.8204684
0.4874291 0.7383247 0.5757814 -0.3053884
> y
[1] 1.51178117 0.38984324
2002 Feb 20
1
Regarding acf
help .
I have a file which contains a table that has 2 columns of which the first
one is a time sereis. I need to extract the first column alone and do an
acf plot on it. I dont know how to extract the first column and pass it
to the acf function in the ts package. Can anybody pls help me.
end
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list
2005 Apr 04
4
acf segfault (PR#7771)
Test case:
z <- ts(matrix(rnorm(200),10,20), start=c(1961,1))
acf(z,lag.max=1)
This segfaults for me. Maybe it shouldn't?
cheers
dave
--please do not edit the information below--
Version:
platform = i386-pc-linux-gnu
arch = i386
os = linux-gnu
system = i386, linux-gnu
status =
major = 2
minor = 0.1
year = 2004
month = 11
day = 15
language = R
Search Path:
.GlobalEnv,
2003 Jun 19
3
acf inherits problem
I think this is a bug, but perhap someone could confirm that it is not just me doing something stupid. (I vaguely recall something like this previously getting fixed in 1.7.0.)
R : Copyright 2003, The R Development Core Team
Version 1.7.1 (2003-06-16)
> z <-matrix(rnorm(100), 100,1)
> acf(as.ts(z), type="partial")
Error in inherits(x, "ts") : evaluation is nested
2016 Mar 23
3
ACF retardos múltiplos del periodo
Hola,
Estoy visualizando una serie temporal para determinar sus órdenes ARIMA y
no consigo lo siguiente: ¿Cómo puedo sacar la ACF de los retardos múltiplos
del periodo? Es decir, sólo ver en el gráfico ACF los retardos 12, 24, 36...
Gracias!!
David
[[alternative HTML version deleted]]
2003 Jul 15
1
function acf in package ts
Hi R lovers!
I'd like to know if the 2 blue lines in the graph produced by the function
acf in the package ts represents the level for the test of significance of
the autocorrelation
thanks for help
vincent
******************************************************************
The sender's email address has changed to
firstname.lastname@ sgcib.com. You may want to update your
2006 Apr 28
1
plot acf of several timeseries
Hello r-help,
I have a couple of time-series of different length and I would like to
produce a simple overview plot showing the autocorrelation functions of
the series. The time-series are stored in a dataframe like this:
> test.data
item year value
1 xxx 1961 -1.09
2 xxx 1962 0.21
3 xxx 1963 -0.81
[trimmed]
8
2008 Oct 28
1
acf() plots of a data.frame: what meaning?
Hello,
what is the meaning of the plots of an acf()-plot,
when using a data frame as argument?
The result is NOT obvious for me.
There are combinations of the columns of a dataframe in the reulting
plot.
But an acf() is just defined for onyl one time-sreies.
So what do the plots mean? I did not found a description in the
help-page.
Ciao,
Oliver
2004 Aug 09
1
Easy acf and pacf for irregular time series in R
R:
Is there an easy way to get the acf and pacf for an irregular times
series? That is, the acf and pacf with lag lengths that are in units of
time, not observation number.
Thanks,
Jason Higbee
Research Associate
Federal Reserve Bank of St. Louis
The views expressed in this email are the author's and not necessarily
those of the Federal Reserve Bank of St. Louis or the Federal Reserve
2002 Jan 15
1
acf conf intervals +speed
Hi,
I'm trying to obtain confidence intervals for auto and
cross correlation estimates. I've adapted code made
available by Stock and Watson that uses the Bartlett
Kernel and the delta method. In R it runs really,
really slow because of the loops it uses and I have 9
series that I'd like to examine (81 total
combinations). It was easy enough to replace one of
the while loops with a
2004 Mar 09
2
corARMA and ACF in nlme
Hi R-sters,
Just wondering what I might be doing wrong. I'm trying to fit a multiple
linear regression model, and being ever mindful about the possibilities of
autocorrelation in the errors (it's a time series), the errors appear to
follow an AR1 process (ar(ts(glsfit$residuals)) selected order 1). So,
when I go back and try to do the simultaneous regression and error fit with
gls,
2006 Oct 28
1
labelling of horizontal axis in acf function
this one is not a false alarm like my previous message.
i have cut and paste the code below so if anyone could run it would be
appreciated. basically,
my question is why the horizontal axis of the acf plot is labelled with
such huge numbers when
the labels should be 1 through 10 since may lag.max = 10 ?
i looked at the cdoe of acf but it was pretty much beyond me. i think it
has something to
2005 Oct 10
1
acf.plot() question
When I run the "acf()" function using the "acf(ts.union(mdeaths,
fdeaths))" example, the "acf()" function calls the "acf.plot()"
function to generate this plot...
http://members.cox.net/ddebarr/images/acf_example.png
The plot in the lower right-hand corner is labeled "fdeaths & mdeaths",
but the negative lags appear to belong to "mdeaths
2002 May 04
1
acf() function
As far as I can see, R does not appear to have an acf() function akin to
Splus. Does anyone have code for this?
regards,
KSG
------------------------------------------------------------
Kristian Skrede Gleditsch, Ph.D.
Assistant Professor
Department of Political Science
University of California, San Diego
La Jolla, CA 92093-0521, USA
Tel: (858) 822 0535, Fax: (858) 534 7130
Email: kgleditsch at