A number of equations are provided for data simulation.
In addition, there are various time-series data available, such as:
Market practitioners general classify interest rates into short-term and long-term categories:
Assume that:
- Y = Longrate = long-term interest rates;
- X = Shortrate = short-term interest rates
suppressPackageStartupMessages({require(readxl)})
txt1 <- "http://uosis.mif.vu.lt/~rlapinskas/(data%20R&GRETL/"
txt2 <- "interestrates.xls"
tmp = tempfile(fileext = ".xls")
#Download the file
download.file(url = paste0(txt1, txt2),
destfile = tmp, mode = "wb")
#Read it as an excel file
interestrates <- ts(read_excel(path = tmp, col_names = TRUE)[, -1], start = 1954, frequency = 4)
The forward rate and spot rate are different prices, or quotes, for different contracts:
suppressPackageStartupMessages({require(readxl)})
txt1 <- "http://uosis.mif.vu.lt/~rlapinskas/(data%20R&GRETL/"
txt2 <- "forexN.xls"
tmp = tempfile(fileext = ".xls")
#Download the file
download.file(url = paste0(txt1, txt2),
destfile = tmp, mode = "wb")
#Read it as an excel file
forexN <- ts(read_excel(path = tmp, col_names = TRUE), start = 1, frequency = 1)
colnames(forexN) <- c("spot", "forward")
Contains the following variables:
- `logm1` - logarithm of real M1 per capita;
- `logprice` - logarithm of a price index;
- `loggnp` - logarithm of real per capita gross national product;
- `interest` - long-run interest rate.
data(M1Germany, package = "dynlm")
logm1
. For the exogenous variables, consider the remaining variables, like logprice
, loggnp
, interest
;logprice
depends on interest
and logm1
.Time series data on 12 US macroeconomic variables for 1950-2000.
- `gdp` - Real gross domestic product (in billion USD);
- `consumption` - Real consumption expenditures;
- `invest` - Real investment by private sector;
- `government` - Real government expenditures;
- `dpi` - Real disposable personal income;
- `cpi` - Consumer price index;
- `m1` - Nominal money stock;
- `tbill` - Quarterly average of month end 90 day treasury bill rate;
- `unemp` - Unemployment rate;
- `population` - Population (in million), interpolation of year end figures using constant growth rate per quarter;
- `inflation` - Inflation rate;
- `interest` - Ex post real interest rate (essentially, tbill - inflation).
data(USMacroG, package = "AER")
consumption
responds to changes in income, dpi
;dpi
) on consumption
persist through time.consumption
depends on the gdp
. If needed, take logarithms of the data.Note: It may very well be the case that some (or even all) of the data do not have unit roots. The idea is to carry out the unit root testing and model building procedures, as you would when working with any other empirical data.
Depending on the previous results, estimate an appropriate model:
Assume that one of your \(X\) variables exhibits a temporary unit increase for period \(t\). Then:
Assume that one of your \(X\) variables exhibits a permanent unit increase after period \(t\), so that \(... = X_{t-1} = X\) and \(X_t = X_{t+1} = ... = X+1\). Then: