[go: up one dir, main page]

File: Rcode-5-2.R

package info (click to toggle)
urca 1.3-0-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,400 kB
  • ctags: 26
  • sloc: fortran: 501; makefile: 1
file content (12 lines) | stat: -rwxr-xr-x 373 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
library(urca)
data(Raotbl3)
attach(Raotbl3)
lc <- ts(lc, start=c(1966,4), end=c(1991,2),
         frequency=4)
lc.ct <- ur.pp(lc, type='Z-tau', model='trend',
               lags='long')
lc.co <- ur.pp(lc, type='Z-tau', model='constant',
               lags='long')
lc2 <- diff(lc)
lc2.ct <- ur.pp(lc2, type='Z-tau', model='trend',
                lags='long')