Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: finance
See also: kpss rvlm lo robwhittle roblm lobrob gph neweywest

Quantlet: kpssnum
Description: Calculates the KPSS statistics for I(0) processes against long-memory alternatives. We consider two tests, denoted by KPSS_mu and KPSS_t, based on a regression on a constant mu, and on a constant and a time trend t, respectively. The quantlet returns the value of the estimated statistic for two the types of the test, i.e., const or trend and the critical values for a 95 percent confidence interval for I(0) (const, trend).

Reference(s):

Usage: (kp, critvalue) = kpssnum(y,T)
Input:
y vector
T scalar, truncation lag for the autocorrelation consistent variance estimator
Output:
kp vector
critvalue vector

Example:
;Non-stationarity test on the series dmus58.dat.
library("times")
x = read("dmus58.dat") ; 25477 obs: log FX rates
x = x[1:1000]
kpssnum(x,0) ;

Result:
Values of the test statistics and its critical values.



Author: G. Teyssiere, 19990120 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006