Glance accepts an object of type anderson_darling and returns a tibble::tibble() with one row of summaries.

Glance does not do any calculations: it just gathers the results in a tibble.

# S3 method for anderson_darling
glance(x, ...)

Arguments

x

an anderson_darling object

...

Additional arguments. Not used. Included only to match generic signature.

Value

A one-row tibble::tibble() with the following columns:

  • dist the distribution used

  • n the number of observations in the sample

  • A the Anderson--Darling test statistic

  • osl the observed significance level (p-value), assuming the parameters of the distribution are estimated from the data

  • alpha the required significance level for the test. This value is given by the user.

  • reject_distribution a logical value indicating whether the hypothesis that the data is drawn from the specified distribution should be rejected

Examples

x <- rnorm(100, 100, 4)
ad <- anderson_darling_weibull(x = x)
glance(ad)
#> # A tibble: 1 × 6
#>   dist        n     A   osl alpha reject_distribution
#>   <chr>   <int> <dbl> <dbl> <dbl> <lgl>              
#> 1 Weibull   100 0.621 0.102  0.05 FALSE              

## # A tibble: 1 x 6
##   dist        n     A        osl alpha reject_distribution
##   <chr>   <int> <dbl>      <dbl> <dbl> <lgl>
## 1 Weibull   100  2.62 0.00000207  0.05 TRUE