Displaying 20 results from an estimated 2000 matches similar to: "Spectral Analysis of Time Series in R"
2007 Apr 09
1
Modified Sims test
Does anyone know of a package that includes the Modified Sims test
[Gewerke, 1983, Sims, 1972]?
This test is used in econometrics and is a kind of alternative to the
Granger test [Granger, 1969], which is in the package lmtest.
Thanks in advance,
chris
Refernces:
Gewerke, J., R. Meese, and W. Dent (1983), "Comparing Alternative Tests
of Causality in Temporal Systems: Analytic Results and
2011 Jul 11
1
Spectral Coherence
Greetings,
I would like to estimate a spectral coherence between
two timeseries. The stats : spectrum() returns a coh matrix
which estimates coherence (squared).
A basic test which from which i expect near-zero coherence:
x = rnorm(500)
y = rnorm(500)
xts = ts(x, frequency = 10)
yts = ts(y, frequency = 10)
gxy = spectrum( cbind( xts, yts ) )
plot( gxy $ freq, gxy $
2011 Apr 14
1
Automatically extract info from Granger causality output
Dear Community,
this is my first programming in R and I am stuck with a problem. I
have the following code which automatically calculates Granger
causalities from a variable, say e.g. "bs" as below, to all other
variables in the data frame:
log.returns<-as.data.frame( lapply(daten, function(x) diff(log(ts(x)))))
y1<-log.returns$bs
y2<- log.returns[,!(names(log.returns) %in%
2011 Mar 03
2
Multivariate Granger Causality Tests
Dear Community,
For my masters thesis I need to perform a multivariate granger causality
test. I have found a code for bivariate testing on this page
(http://www.econ.uiuc.edu/~econ472/granger.R.txt), which I think would not
be useful for the multivariate case. Does anybody know a code for a
multivariate granger causality test. Thank you in advance.
Best Regards
--
View this message in context:
2009 Nov 16
2
test for causality
Hi useRs..
I cant figure out how to test for causality using causality() in vars
package
I have two datasets (A, B) and i want to test if A (Granger)cause B.
How do I write the script? I dont understand ?causality. How do I get x to
"contain" A and B. Further using the command VAR() to specify x, I dont
either understand.
Kind regards Tobias
--
View this message in context:
2011 Apr 04
1
Granger Causality in a VAR Model
Dear Community,
I am new to R and have a question concerning the causality () test in
the vars package. I need to test whether, say, the variable y Granger
causes the variable x, given z as a control variable.
I estimated the VAR model as follows: >model<-VAR(cbind(x,y,z),p=2)
Then I did the following: >causality(model, cause="y"). I thing this
tests the Granger causality of
2010 Dec 01
1
Wiener-Granger Causality Test in R
Hello dudes.
I'm developing VAR analysis based on suggestions made by Horváth in its
paper Canonical Correlation Analysis and Wiener-Granger Causality Tests.
That's the reason I'm looking for if there's any R package to develop Wiener
- Granger Causality Test.
Thanks a lot for your unvaluable help.
Regards from Mexico
[[alternative HTML version deleted]]
2009 Mar 23
1
how to estimate multidimensional spectral measure of coherence
Please, does anyone know of an R packge to estimate multidimensional spectral measure of coherence within a moving time window ?
Some time ago I expeimented with a similar package that performs Cross Spectrum Analysis on the whole signal though.
Unluckily I deal with non-stationary signals whose properties change along with time. Therefore estimates can only be made over time periods
roughly
2002 Oct 22
3
Spectral phase information in residue vectors
I found this sentence in the Ogg format specs:
http://www.xiph.org/ogg/vorbis/doc/vorbis-spec-res.html
"A residue vector may represent spectral lines, spectral magnitude, spectral phase or hybrids as mixed by channel coupling."
But where does the spectral phase information come from ?
AFAIK MDCT doesn't provide any phase information.
And in OGG-encoding, MDCT is taking place a few
2008 Jul 02
2
Optimal lag selection in Granger Causality tests
Dear R Users,
Can someone point me to a R package which will help me optimally choose a
lag for Granger Causality testing ?
Many thanks in advance,
Tolga
Generally, this communication is for informational purposes only
and it is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation
of any transaction. In the event you are
2006 Jan 31
1
How do I "normalise" a power spectral density
I have done a fair bit of spectral analysis, and hadn't finished collecting my thoughts for a reply, so hadn't replied yet.
What exactly do you mean by normalize?
I have not used the functons periodogram or spectrum, however from the description for periodogram it appears that it returns the spectral density, which is already normalized by frequency, so you don't have to worry about
2007 Jun 06
3
Spectral analysis
Hi all,
I am dealing with paleoceanographic data and I have a C14 time serie and one other variable. I would like to perform a spectral analysis (fft or wavelet) and plot it. Unfortunately I don't know the exact script to do this. Does anybody could send me an example to perform my spectral analysis ?
I Thank you
David
Changez de tête et de tenue tous les jours si vous le voulez !
2013 Apr 20
1
Convergent Cross Mapping
Dear All,
I am looking for an R implementation of the convergent cross mapping
method (see http://bit.ly/XN8OZX and
http://www.uvm.edu/~cdanfort/csc-reading-group/sugihara-causality-science-2012.pdf
)
The method is presented as an improvement over Granger causality (
http://bit.ly/XN8ydi ), but its implementation (involving shadows of
multidimensional manifolds) must be quite some work...
2012 Oct 23
1
find similarity between two spectral profile
Hi,
I'm Pina and I'm a student in geology. I'm working with spectral profile of
sand and I have to find the similarity between one spectral profile selected
by hyperspectral image anche one that I created to mix different percentage
of 4 mineral component. I have to find the best mix of percentage of this 4
mineral in order to have the best likeness with the spectral profile chose
by
2006 Jan 27
2
How do I "normalise" a power spectral density analysis?
Hi everyone
Can anyone tell me how I normalise a power spectral density (PSD) plot of a
periodical time-series. At present I get the graphical output of spectrum VS
frequency.
What I want to acheive is period VS spectrum? Are these the same things but the
x-axis scale needs transformed ?
Any help would be greatly appreciated
Tom
2007 Jun 29
2
Spectral Decomposition
All of my resources for numerical analysis show that the spectral
decomposition is
A = CBC'
Where C are the eigenvectors and B is a diagonal matrix of eigen values.
Now, using the eigen function in R
# Original matrix
aa <- matrix(c(1,-1,-1,1), ncol=2)
ss <- eigen(aa)
# This results yields back the original matrix according to the formula
above
ss$vectors %*% diag(ss$values) %*%
2007 Jan 08
2
Simple spectral analysis
Hello world,
I am actually trying to transfer a lecture from Statistica to
R and I ran into problems with spectral analysis, I think I
just don't get it 8-(
(The posting from "FFT, frequs, magnitudes, phases" from 2005
did not enlighten me)
As a starter for the students I have a 10year data set of air
temperature with daily values and I try to
get a periodogram where the annual
2018 Apr 10
2
Spectral analisys for for R version 3.4.3
Dear all,
Is there any spectral analisys functionality available for R version 3.4.3?
Series() functionality doesn't work in this version.
Regards
Danniel
[[alternative HTML version deleted]]
2012 Jul 14
1
Quantile Regression - Testing for Non-causalities in quantiles
Dear all,
I am searching for a way to compute a test comparable to Chuang et al.
("Causality in Quantiles and Dynamic Stock
Return-Volume Relations"). The aim of this test is to check wheter the
coefficient of a quantile regression granger-causes Y in a quantile range. I
have nearly computed everything but I am searching for an estimator of the
density of the distribution at several
2003 Jul 03
2
SVD and spectral decompositions of a hermitian matrix
Hi:
I create a hermitian matrix and then perform its singular value
decomposition. But when I put it back, I don't get the original
hermitian matrix. I am having the same problem with spectral value
decomposition as well.
I am using R 1.7.0 on Windows. Here is my code:
X <- matrix(rnorm(16)+1i*rnorm(16),4)
X <- X + t(X)
X[upper.tri(X)] <- Conj(X[upper.tri(X)])
Y <-