Summarizes information about radf_cv object.

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

# S3 method for radf_cv
augment(x, format = c("wide", "long"), trunc = TRUE, ...)

Arguments

x

An object of class radf_cv.

format

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

...

Further arguments passed to methods. Not used.

trunc

Whether to remove the period of the minimum window from the plot (default = TRUE).

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.419  0.929  1.68
#> 2 95    -0.0571 1.30   1.98
#> 3 99     0.385  1.82   2.62

# 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.316    
#>  2    20 95    -0.08  0.0997   
#>  3    20 99     0.6   0.573    
#>  4    21 90    -0.44 -0.157    
#>  5    21 95    -0.08  0.238    
#>  6    21 99     0.6   1.10     
#>  7    22 90    -0.44 -0.0725   
#>  8    22 95    -0.08  0.275    
#>  9    22 99     0.6   1.23     
#> 10    23 90    -0.44  0.0000609
#> # ℹ 233 more rows

# }