Skip to contents

Calcula a PACF ate lag_max por Durbin-Levinson (backend C++).

Usage

rnp_ts_pacf(x, lag_max = NULL, digits = 4L)

Arguments

x

Vetor numerico ou ts.

lag_max

Inteiro. Numero maximo de defasagens.

digits

Inteiro.

Value

tibble com lag, pacf, lim_inf, lim_sup.

Examples

rnp_ts_pacf(as.numeric(AirPassengers), lag_max = 20)
#> # A tibble: 20 × 4
#>      lag    pacf lim_inf lim_sup
#>    <int>   <dbl>   <dbl>   <dbl>
#>  1     1  0.948   -0.163   0.163
#>  2     2 -0.229   -0.163   0.163
#>  3     3  0.0381  -0.163   0.163
#>  4     4  0.0938  -0.163   0.163
#>  5     5  0.0736  -0.163   0.163
#>  6     6  0.0077  -0.163   0.163
#>  7     7  0.126   -0.163   0.163
#>  8     8  0.09    -0.163   0.163
#>  9     9  0.232   -0.163   0.163
#> 10    10  0.166   -0.163   0.163
#> 11    11  0.171   -0.163   0.163
#> 12    12 -0.135   -0.163   0.163
#> 13    13 -0.540   -0.163   0.163
#> 14    14 -0.0266  -0.163   0.163
#> 15    15  0.0908  -0.163   0.163
#> 16    16  0.025   -0.163   0.163
#> 17    17  0.0325  -0.163   0.163
#> 18    18  0.0734  -0.163   0.163
#> 19    19  0.0484  -0.163   0.163
#> 20    20 -0.0455  -0.163   0.163