Skip to content

Commit c04c8ee

Browse files
committed
Add documentation for fiscal variables
1 parent 90e9d18 commit c04c8ee

File tree

4 files changed

+96
-5
lines changed

4 files changed

+96
-5
lines changed

R/fiscal_data.R

+37-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@
22
#'
33
#' Fiscal variables on Brazilian subnational governments
44
#'
5-
#' @format data.frame
6-
#'
5+
#' @format A data frame with 243 observations and 32 variables
6+
#' \describe{
7+
#' \item{id}{Unique observation identifier}
8+
#' \item{state}{Subnational government alphabetic identifier code}
9+
#' \item{year}{Year}
10+
#' \item{region}{Region of subnational government}
11+
#' \item{state_calamity}{Dummy variable equal to one if the state declared financial calamity in any year}
12+
#' \item{calamity}{Dummy variable equal to one if the state declated financial calamity in a given year}
13+
#' \item{dcb}{Gross debt}
14+
#' \item{rcl}{Net current revenue}
15+
#' \item{juros}{Interest payments}
16+
#' \item{amortizacao}{Principal payments}
17+
#' \item{primario}{Primary balance}
18+
#' \item{dbp}{Compensation of employees}
19+
#' \item{rec_cor}{Current revenue}
20+
#' \item{desp_cor}{Current expenses}
21+
#' \item{investimentos}{Gross investment in nonfinancial assets}
22+
#' \item{desp_total}{Total expenditure}
23+
#' \item{rec_previdenciarias}{Social contributions}
24+
#' \item{inativos}{Social benefits}
25+
#' \item{rec_tributaria}{Tax revenues}
26+
#' \item{obrig_fin}{Current liabilities}
27+
#' \item{disp_caixa_bruta}{Cash and cash equivalents}
28+
#' \item{stn_end}{Gross Debt / Net current revenue}
29+
#' \item{stn_sdrcl}{Debt service / Net current revenue}
30+
#' \item{stn_rpsd}{Primary balance / Debt service}
31+
#' \item{stn_dprcl}{Compensation of employees / Net current revenue}
32+
#' \item{stn_cgpp}{Current fiscal balance / Current revenue}
33+
#' \item{stn_pidt}{Gross investment in nonfinancial assets / Total expenditure}
34+
#' \item{stn_pcrdp}{Social contributions / Social benefits}
35+
#' \item{stn_rtdc}{Tax revenues / (Current expenses + Principal payments)}
36+
#' \item{capag_idc}{Gross Debt / Net current revenue}
37+
#' \item{capag_pc}{Current expenses / Current revenue}
38+
#' \item{capag_il}{Current liabilities / Cash and cash equivalents}
39+
#' }
40+
#' @examples
41+
#' fiscal_data
742
"fiscal_data"

README.Rmd

+12-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ bibliography: references.bib
88
knitr::opts_chunk$set(echo = TRUE)
99
```
1010

11+
# Brazilian subnational governments fiscal data
12+
1113
This package aims to make available in machine readable format regional discriminated data on the fiscal variables that are needed to compute the fiscal indicators used by the Brazilian National Treasury Secretariat (NTS) for payment capacity evaluation.
1214

1315
# Installation
@@ -21,7 +23,7 @@ if (!require("devtools")) {
2123
devtools::install_github("fjuniorr/junior2017")
2224
```
2325

24-
Alternatively, a `csv` file with the dataset can be downloaded [here](https://github.com/fjuniorr/junior2017/raw/master/data-raw/fiscal_data.csv).
26+
Alternatively, a `csv` file with the dataset can be downloaded <a href="https://github.com/fjuniorr/junior2017/raw/master/data-raw/fiscal_data.csv" target="_blank">here</a>.
2527

2628
# Code examples
2729

@@ -49,4 +51,13 @@ ggplot(fiscal_data, aes(x = factor(year), y = capag_il, color = state_calamity))
4951
guides(color=guide_legend(reverse=TRUE))
5052
```
5153

54+
<!-- Similarly, the estimation results for model 1 presented in table $4.2$ of @junior2017 can be reproduced with -->
55+
56+
<!-- ```{r} -->
57+
<!-- library(brglm) -->
58+
59+
<!-- fit <- brglm(spec_capag, family=binomial(link='logit'), data = DT) -->
60+
<!-- ``` -->
61+
62+
5263
# References

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Brazilian subnational governments fiscal data
2+
=============================================
3+
14
This package aims to make available in machine readable format regional
25
discriminated data on the fiscal variables that are needed to compute
36
the fiscal indicators used by the Brazilian National Treasury
@@ -14,7 +17,7 @@ This package can be installed directly from GitHub using `devtools`:
1417
devtools::install_github("fjuniorr/junior2017")
1518

1619
Alternatively, a `csv` file with the dataset can be downloaded
17-
[here](https://github.com/fjuniorr/junior2017/raw/master/data-raw/fiscal_data.csv).
20+
<a href="https://github.com/fjuniorr/junior2017/raw/master/data-raw/fiscal_data.csv" target="_blank">here</a>.
1821

1922
Code examples
2023
=============
@@ -42,6 +45,11 @@ reproduced with
4245

4346
![](README_files/figure-markdown_strict/unnamed-chunk-3-1.png)
4447

48+
<!-- Similarly, the estimation results for model 1 presented in table $4.2$ of @junior2017 can be reproduced with -->
49+
<!-- ```{r} -->
50+
<!-- library(brglm) -->
51+
<!-- fit <- brglm(spec_capag, family=binomial(link='logit'), data = DT) -->
52+
<!-- ``` -->
4553
References
4654
==========
4755

man/fiscal_data.Rd

+38-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)