Learn R Programming

nowcasting (version 0.0.82)

base_extraction: Extract time series and create a base

Description

Create a time series matrix mts used to estimate the commmon factors.

Usage

base_extraction(series_code)

Arguments

series_code

Vector with the series encoding follow the Bacen (Banco Central do Brasil) standards.

Value

A mts in the same specification required in argument base of function nowcasting

References

Central Bank of Brazil

Examples

Run this code
# NOT RUN {
# Extracting GDP serie at real-time from Central Bank of Brasil data base
gdp<-base_extraction(22099)

# Extracting Vehicles production (1373) serie at real-time from Central Bank of Brasil data base
vei_prod<-base_extraction(1373)


# }
# NOT RUN {
# Industrial production (21859) serie at real-time from Central Bank of Brasil data base
ind_prod<-base_extraction(21859)

# Creating real time data base with the series: 
# Vehicles production (1373);
# Industrial production, general index (21859).
mybase<-base_extraction(c(1373,21859))

# Creating real time data base with the series: 
# Exchange rate - Free - United States dollar (1);
#  Interest rate - CDI (12).
mybase<-base_extraction(c(1,12))

# Creating real time data base with the series: 
# Vehicles production (1373);
# Credit Sales Index (1453);
# Retail sales (1455);
# Industrial production, general index (21859).
mybase<-base_extraction(c(1373,1453,1455,21859))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab