File: denmark.inp

package info (click to toggle)
gretl 2022c-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 59,552 kB
  • sloc: ansic: 409,074; sh: 4,449; makefile: 3,222; cpp: 2,777; xml: 599; perl: 364
file content (20 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Replication of some of the results on Danish macro
# data in S. Johansen, "Likelihood-Based Inference in
# Cointegrated Vector Auto-Regressive Models" (Oxford,
# 1995), chapter 7.

open denmark.gdt

# determination of the cointegration rank
johansen 2 LRM LRY IBO IDE --rc --seasonals

# estimation of the vector EC model
vecm 2 1 LRM LRY IBO IDE --rc --seasonals

# retrieve the cointegration vector and the loadings
matrix alpha = $jalpha
matrix beta = $jbeta
matrix Pi = alpha*beta'

print "Restricted long-run matrix"
Pi