Skip to contents

Summarizes information about radf_cv object.

Usage

# S3 method for class 'radf_cv'
tidy(x, format = c("wide", "long"), ...)

Arguments

x

An object of class radf_cv.

format

Long or wide format (default = "wide").

...

Further arguments passed to methods. Not used.

Value

A tibble::tibble()

  • id: The series names.

  • sig: The significance level.

  • name: The name of the series (when format is "long").

  • crit: The critical value (when format is "long").

Examples

# \donttest{
mc <- radf_mc_cv(100)

# Get the critical values
tidy(mc)
#> # A tibble: 3 × 4
#>   sig       adf  sadf gsadf
#>   <fct>   <dbl> <dbl> <dbl>
#> 1 90    -0.447  0.990  1.63
#> 2 95    -0.0521 1.23   1.93
#> 3 99     0.683  1.96   2.73

# Get the critical value sequences
augment(mc)
#> # A tibble: 243 × 4
#>      key sig    badf   bsadf
#>    <int> <fct> <dbl>   <dbl>
#>  1    20 90    -0.44 -0.342 
#>  2    20 95    -0.08  0.0679
#>  3    20 99     0.6   0.845 
#>  4    21 90    -0.44 -0.156 
#>  5    21 95    -0.08  0.228 
#>  6    21 99     0.6   0.845 
#>  7    22 90    -0.44 -0.0570
#>  8    22 95    -0.08  0.384 
#>  9    22 99     0.6   1.09  
#> 10    23 90    -0.44 -0.0100
#> # ℹ 233 more rows
# }