-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
43 lines (31 loc) · 1.24 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
out.width = "100%"
)
```
# chainSTAT
<!-- badges: start -->
<!-- badges: end -->
`chainSTAT` is a small package that includes the functions needed to run the seasonal adjustment code for national accounts by Statistics Austria. The main objective are the chainlinking functions (using annual overlap). The functions are designed for the use in QNA but may be useful in other contexts as well.
## Installation
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("statistikat/chainSTAT")
```
## Example
This example shows how to use the `chainlinkAO` function. For demonstration we first generate a time series that represents the current price series and deflate it to mimic the corresponding pyp series.
```{r example}
library(chainSTAT)
# generating a cup and a pyp series
cup <- stats::ts(cumsum(c(100,stats::rnorm(99, mean = 1))), start = 1995, frequency = 4)
pyp <- cup / stats::rnorm(100, mean = 1.02, sd = 0.01)
# deriving volume series
vol <- chainlinkAO(cup,pyp)
```