Learn R Programming

kardl (version 0.1.1)

imf_example_data: IMF Example Data

Description

This is an example data set used for testing purposes.

Usage

imf_example_data

Arguments

Format

A data frame with 470 rows and 4 variables:

ER

Numeric. Exchange rate of Turkey.

CPI

Numeric. CPI of Turkey.

PPI

Numeric. PPI of Turkey.

covid

Integer.Covid19 dummy variable.

Details

These data obtained from imf.data package. The sample data is not updated and obtained by following codes.:

install.packages("imf.data")
library("imf.data")
IFS <- load_datasets("IFS")

  • PCPI_IX Prices, Consumer Price Index, All items, Index

  • AIP_IX Economic Activity, Industrial Production, Index

  • ENDE_XDC_USD_RATE Exchange Rates, Domestic Currency per U.S. Dollar, End of Period, Rate

trdata<-IFS$get_series(freq = "M", ref_area = "TR", indicator = c("PCPI_IX","AIP_IX","ENDE_XDC_USD_RATE"),start_period = "1985-01",end_period = "2024-02")
PeriodRow<-trdata[,1]
trdata[,1]<-NULL
colnames(trdata)<-c("ER","CPI","PPI")
trdata<-log(as.data.frame(lapply(trdata, function(x) as.numeric(x))))
rownames(trdata)<-PeriodRow

Inserting covid dummy variable

trdata<-cbind(trdata,covid=0)
trdata[420:470,4]<-1

See Also

load_datasets

Examples

Run this code
data(imf_example_data)
head(imf_example_data)

Run the code above in your browser using DataLab