{"id":13857402,"url":"https://github.com/nmecsys/BETS","last_synced_at":"2025-07-13T21:32:31.298Z","repository":{"id":55602865,"uuid":"102370835","full_name":"nmecsys/BETS","owner":"nmecsys","description":"Package to obtain and analyze thousands of Brazilian economic time series ","archived":false,"fork":false,"pushed_at":"2021-04-03T20:57:07.000Z","size":5466,"stargazers_count":38,"open_issues_count":7,"forks_count":13,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-28T17:32:46.067Z","etag":null,"topics":["package","r"],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nmecsys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-04T14:34:48.000Z","updated_at":"2024-08-25T10:30:08.000Z","dependencies_parsed_at":"2022-08-15T04:10:22.998Z","dependency_job_id":null,"html_url":"https://github.com/nmecsys/BETS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmecsys%2FBETS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmecsys%2FBETS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmecsys%2FBETS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmecsys%2FBETS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nmecsys","download_url":"https://codeload.github.com/nmecsys/BETS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225920312,"owners_count":17545469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["package","r"],"created_at":"2024-08-05T03:01:35.671Z","updated_at":"2024-11-22T15:30:39.248Z","avatar_url":"https://github.com/nmecsys.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\nBETS\n====\n\n[![Build Status](https://travis-ci.org/nmecsys/BETS.svg?branch=master)](https://travis-ci.org/nmecsys/BETS) \n![Build Status](https://ci.appveyor.com/api/projects/status/github/nmecsys/BETS?branch=master\u0026svg=true) \n[![CRAN\\_Status\\_Badge](http://www.r-pkg.org/badges/version/BETS)](https://CRAN.R-project.org/package=BETS) \n[![downloads](http://cranlogs.r-pkg.org/badges/BETS)](http://cran.rstudio.com/web/packages/BETS/index.html) \n![](http://cranlogs.r-pkg.org/badges/last-week/BETS?color=blue)\n[![Github Stars](https://img.shields.io/github/stars/nmecsys/BETS.svg?style=flat\u0026label=Github)](https://github.com/nmecsys/BETS)\n![GitHub repo size in bytes](https://img.shields.io/github/repo-size/nmecsys/BETS.svg)\n![CRAN](https://img.shields.io/cran/l/BETS.svg)\n\n\n\n![Screenshot](https://gist.githubusercontent.com/GreedBlink/e47bce2c1f31ca138885eab5a704a98f/raw/2364ac84350c54fff9acb923877c2f2b88babc08/BETS.png)\n\n\n:exclamation: **Please read this carefully before using the latest BETS version (0.4.4)**\n\n*The package went through considerable changes.*\n\nBETS - Brazilian Economic Times Series\n======================================\n\nInstallation\n------------\n\n``` r\n# cran version\ninstall.packages(\"BETS\") \n# dev version\ndevtools::install_github(\"nmecsys/BETS\")\n```\n\nUsage\n-----\n\n``` r\nlibrary(BETS)\n```\n\n:exclamation: Important (update 0.4.2)\n--------------------------------------\n\n1.  BETS package underwent major changes in response to R Journal's reccomendations:\n    -   New function names (see table below)\n    -   Database onnection credentials are now encrypted\n    -   Sample data was included in `/data`, to allow the user to run examples even when offline, or when our server is down.\n\n| Old name          | New name    |\n|:------------------|:------------|\n| BETS.search       | BETSsearch  |\n| BETS.get          | BETSget     |\n| BETS.chart        | chart       |\n| BETS.save.sas     | saveSas     |\n| BETS.save.stata   | saveStata   |\n| BETS.save.spss    | saveSpss    |\n| BETS.corrgram     | corrgram    |\n| BETS.dashboard    | dashboard   |\n| BETS.deflate      | deflate     |\n| BETS.dummy        | dummy       |\n| BETS.grnn.test    | grnn.test   |\n| BETS.grnn.train   | grnn.train  |\n| BETS.normalize    | normalize   |\n| BETS.predict      | predict     |\n| BETS.report       | report      |\n| BETS.sidra.get    | sidraGet    |\n| BETS.sidra.search | sidraSearch |\n| BETS.std\\_resid   | std\\_resid  |\n| BETS.t\\_test      | t\\_test     |\n| BETS.ur\\_test     | ur\\_test    |\n\n1.  Package `forecast`'s newest version (8.3) contains a bug in `ndiffs`. 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 install `forecast 8.2`:\n\n``` r\nremove.packages(\"forecast\")\ninstall.packages(\"devtools\")\ndevtools::install_version(\"forecast\", version = \"8.2\", type = \"source\")\n```\n\n## Using BETS in python\n\n\n```\nimport rpy2.robjects as ro\nimport pandas as pd\nfrom rpy2.robjects.packages import importr\nfrom rpy2.robjects import pandas2ri\nfrom rpy2.robjects.conversion import localconverter\n\n\n# Getting Industrial Production (2002 = 100) - Rio de Janeiro\n\nbets = importr(\"BETS\")\ndados = bets.BETSget(code=11081, data_frame=True)\n\n\nwith localconverter(ro.default_converter + pandas2ri.converter):\n    pim_rj = ro.conversion.rpy2py(dados)\n\nprint(pim_rj)\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmecsys%2FBETS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnmecsys%2FBETS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmecsys%2FBETS/lists"}