[go: up one dir, main page]

File: Rcode-5-3.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 449 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
library(urca)
data(nporg)
gnp <- log(na.omit(nporg[, "gnp.r"]))
gnp.d <- diff(gnp)
gnp.ct.df <- ur.ers(gnp, type = "DF-GLS",
                    model = "trend", lag.max = 4)
gnp.ct.pt <- ur.ers(gnp, type = "P-test",
                    model = "trend")
gnp.d.ct.df <- ur.ers(gnp.d, type = "DF-GLS",
                      model = "trend", lag.max = 4)
gnp.d.ct.pt <- ur.ers(gnp.d, type = "P-test",
                      model = "trend")