Displaying 20 results from an estimated 600 matches similar to: "KPSS test"
2005 Mar 08
2
The null hypothesis in kpss test (kpss.test())
is that 'x' is level or trend stationary. I did this
> s<-rnorm(1000)
> kpss.test(s)
KPSS Test for Level Stationarity
data: s
KPSS Level = 0.0429, Truncation lag parameter = 7,
p-value = 0.1
Warning message:
p-value greater than printed p-value in:
kpss.test(s)
My question is whether p=0.1 is a good number to
reject
N0? On the other hand, I have a
2005 May 02
1
Trying to understand kpss.test() in tseries package
I'm trying to understand how to use kpss.test() properly. If I have a
level stationary series like rnorm() in the help page, shouldn't I get a
small p-value with the null hypothesis set to "Trend"? The (condensed)
output from kpss.test() for the two possible null hypotheses is given
below. I don't see any significant difference between these results.
> x <-
2005 Mar 09
1
about kpss.test()
Hi All,
First of all, could you tell me what the "KPSS Level"
in the output of the test means?
I have a series, x, of periodic data and tried
kpss.test() on it to verify its stationarity. The
tests
gave me the p-value above 0.1. Since the null
hypothesis N0 is that the series _is_ stationary, this
means that I cannot reject N0. But the series does
look
periodic!
So does all this
2006 Jun 26
2
converting to time series object : ts - package:stats
Hi,
I am trying to convert a dataset (dataframe) into time series object using ts function in stats package. My dataset is as follows:
>df
[1] 11.08 7.08 7.08 6.08 6.08 6.08 23.08 32.08 8.08 11.08 6.08 13.08 13.83 16.83 19.83 8.83 20.83 17.83
[19] 9.83 20.83 10.83 12.83 15.83 11.83
I converted this into time series object as follows
>tsdata <-
2008 Jan 10
1
question regarding kpss tests from urca, uroot and tseries packages
Hi R users!
I've come across using kpss tests for time series analysis and i have a question that troubles me since i don't have much experience with time series and the mathematical part underlining it.
x<-c(253, 252, 275, 275, 272, 254, 272, 252, 249, 300, 244,
258, 255, 285, 301, 278, 279, 304, 275, 276, 313, 292, 302,
322, 281, 298, 305, 295, 286, 327, 286, 270, 289, 293, 287,
2007 Dec 08
2
time series tests
Hi all,
Can anyone clear my doubts about what conclusions to take with the following what puts of some time series tests:
> adf.test(melbmax)
Augmented Dickey-Fuller Test
data: melbmax
Dickey-Fuller = -5.4075, Lag order = 15, p-value = 0.01
alternative hypothesis: stationary
Warning message:
p-value smaller than printed p-value in: adf.test(melbmax)
2006 Jul 06
1
Access values in kpssstat-class
Hi,
How can I access the Values stored in kpssstat-class given by KPSS.test function and store it in a variable.
For example:
>x <- rnorm(1000)
>test <- KPSS.test(ts(x))
>test
---- ----
KPSS test
---- ----
Null hypotheses: Level stationarity and stationarity around a linear trend.
Alternative hypothesis: Unit root.
----
Statistic for the null
2005 Mar 14
2
confidence level of kpss test
Dear All,
I am trying to use kpss.test function so as to perform a stationarity test on a data sample. Is it possible to know the associated confidence level for this test? I have not seen any arguments related to it.
I had a look at some other tests included in R (adf.test, pp.test, ks.test ...) and I could not find this information for them.
Thanks in advanced. Kind regards,
Belén
2008 Jan 21
4
Stationarity of a Time Series
Does anyone know of a test for stationarity of a time series, or like
all ordination techniques it is a qualitative assessment of a
quantitative result. Books, papers, etc. suggestions welcome.
thanks
Stephen
--
Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods. We are
2004 Oct 13
4
incomplete function output
Dear R users,
I have a function (below) which encompasses several tests.
However, when I run it, only the output of the last test is
displayed. How can I ensure that the function root(var)
will run and display the output from all tests, and not
just the last one?
Thank you,
b.
root <- function(var)
{
#---Phillips-Perron
PP.test(var, lshort = TRUE)
PP.test(var, lshort = FALSE)
2008 May 31
0
KPSS test - Lag selection
Hello everyone!
Quite a similar question has been posed here some time ago, but there was no
explicit solution offered. So I hope that it is OK to pose it again.
I want to perform a KPSS test using the packages "urca" or "tseries". But I
neither want to use the predefined lag structures, "short" and "long", nor
specify the number of lags arbitrarily by
2003 Apr 17
2
Testing for Stationarity of time series
Hi there,
Does anyone know if R has a function for testing whether a time series is
stationary??
Thanks in advance,
Wayne
Dr Wayne R. Jones
Statistician / Research Analyst
KSS Group plc
St James's Buildings
79 Oxford Street
Manchester M1 6SS
Tel: +44(0)161 609 4084
Mob: +44(0)7810 523 713
KSS Ltd
A division of Knowledge Support Systems Group plc
Seventh Floor St James's
2005 Jun 14
1
using forecast() in dse2 with an ARMA model having a trend component
(My apologies if this is a repeated posting. I couldn't find any trace
of my previous attempt in the archive.)
I'm having trouble with forecast() in the dse2 package. It works fine
for me on a model without a trend, but gives me NaN output for the
forecast values when using a model with a trend. An example:
# Set inputs and outputs for the ARMA model fit and test periods
2009 Nov 10
0
How to do ADF test and KPSS test in R
Dear all,
How to do ADF test ¡¢KPSS¡¢ PP¡¢GLS test in R£¿
Thanks a lot !
[[alternative HTML version deleted]]
2005 Mar 25
0
questions on ARMA and KPSS
Hi,
I have been fitting a series of data representing
a week of Internet traffic (which is daily seasonal
and have a general trend toward lower rate at the
weekends).
Before I do the ARMA fit (which takes care of
seasonality with a lag equal to one day), do I
have to make sure the data is stationary? From the
results and visually, it seems that this was taken
care of. But the residual
2007 May 15
1
urca package - summary method -
Hi
I am using the package urca and I am interested about the KPSS test.
That works fine except the method "summary" did not work in the script,
only when it is typed direct in the console the results are shown( not a
source file).
Is there any problem with these method ?
2006 Jan 03
2
KALMAN FILTER HELP
Hi All,
Currently I'm using DSE package for Kalman Filtering. I have a dataset
of one dependent variable and seven other independent variables. I'm
confused at one point. How to declare the input-output series using
TSdata command. Because the given example at page 37 showing some error.
rain <- matrix(rnorm(86*17), 86,17)
radar <- matrix(rnorm(86*5), 86,5)
mydata <-
2008 Jun 26
1
stationary "terminology" time series question
This is not exactly an R question but the R code below may make my
question more understandable.
If one plots sin(x) where x runs from -pi to pi , then the curve hovers
around zero obviously. so , in a"stationary in the mean" sense,
the series is stationary. But, clearly if one plots the acf, the
autocorrelations at lower lags are quite high and, in the "box jenkins"
2005 Jan 25
1
CODA vs. BOA discrepancy
Dear List:
the CODA and BOA packages for the analysis of MCMC output yield different
results on two dignostic test of convergence: 1) Geweke's convergence
diagnostic; 2) Heidelberger and Welch's convergence diagnostic. Does that
imply that the CODA and BOA packages implement different ``flavors'' of
the same test?
I paste below an example.
Geweke's test
2009 Oct 30
1
how to test for stationarity in time series?
Hi all,
Could anybody tell me how to test for stationarity in time series?
Thanks a lot!
[[alternative HTML version deleted]]