Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Package to obtain and analyze thousands of Brazilian economic time series

License

NotificationsYou must be signed in to change notification settings

nmecsys/BETS

Repository files navigation

Build StatusBuild StatusCRAN_Status_BadgedownloadsGithub StarsGitHub repo size in bytesCRAN

Screenshot

Please read this carefully before using the latest BETS version (0.4.4)

The package went through considerable changes.

BETS - Brazilian Economic Times Series

Installation

# cran versioninstall.packages("BETS")# dev versiondevtools::install_github("nmecsys/BETS")

Usage

library(BETS)

❗ Important (update 0.4.2)

  1. BETS package underwent major changes in response to R Journal's reccomendations:
    • New function names (see table below)
    • Database onnection credentials are now encrypted
    • Sample data was included in/data, to allow the user to run examples even when offline, or when our server is down.
Old nameNew name
BETS.searchBETSsearch
BETS.getBETSget
BETS.chartchart
BETS.save.sassaveSas
BETS.save.statasaveStata
BETS.save.spsssaveSpss
BETS.corrgramcorrgram
BETS.dashboarddashboard
BETS.deflatedeflate
BETS.dummydummy
BETS.grnn.testgrnn.test
BETS.grnn.traingrnn.train
BETS.normalizenormalize
BETS.predictpredict
BETS.reportreport
BETS.sidra.getsidraGet
BETS.sidra.searchsidraSearch
BETS.std_residstd_resid
BETS.t_testt_test
BETS.ur_testur_test
  1. Packageforecast's newest version (8.3) contains a bug inndiffs. An error arises when trying to run Augmented Dickey-Fuller (ADF) tests. Therefore, BETS'report function does not work properly if the user opt for SARIMA analysis with ADF tests. A solution is to installforecast 8.2:
remove.packages("forecast")install.packages("devtools")devtools::install_version("forecast",version="8.2",type="source")

Using BETS in python

import rpy2.robjects as roimport pandas as pdfrom rpy2.robjects.packages import importrfrom rpy2.robjects import pandas2rifrom rpy2.robjects.conversion import localconverter# Getting Industrial Production (2002 = 100) - Rio de Janeirobets = importr("BETS")dados = bets.BETSget(code=11081, data_frame=True)with localconverter(ro.default_converter + pandas2ri.converter):    pim_rj = ro.conversion.rpy2py(dados)print(pim_rj)

About

Package to obtain and analyze thousands of Brazilian economic time series

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors5

Languages


[8]ページ先頭

©2009-2025 Movatter.jp