payments_sti_correlation: Correlation between payouts and STI

Description Usage Arguments Details Value Examples

View source: R/income_sti_correlation.R

Description

This function calculates the correlation between the STI of a county and the average worker compensation (i.e., wages paid out) of the county for each day. It then outputs the correlation coefficient as a time series.

Usage

1
payments_sti_correlation(path, sheetnr)

Arguments

path

Specifies where the relevant table is located. If path is not specified, the table available in the package will be used.

sheetnr

Specifies on which page of the Excel table the relevant data can be found. The parameter must only be specified if an own dataset is used.

Details

The function is based on data from Destatis, sourced from https://www.statistikportal.de/de/vgrdl/ergebnisse-kreisebene/einkommen-kreise on 12.8.2021. You can also load your own table. For this the corresponding path, as well as the sheetnumber of the relevant dataset.

Value

Gives the daily correlation coefficient between wage payments and the and the STI in all counties as a time series in the form of a tibble The "date" column describes the date, and the "cor" column describes the coefficient.

Examples

1
2
3
4
5
payments_sti_correlation()
payments_sti_correlation("expl/path.xlsx", 11)

## Not run: payments_sti_correlation(sheetnr=3)
## Not run: payments_sti_correlation(path="custom/path/without/sheetnumber.xlsx")

slausmeister/revolution documentation built on Dec. 23, 2021, 3:24 a.m.