Skip to contents

Returns distribution statistics in a tibble.

Usage

util_pareto_stats_tbl(.data)

Arguments

.data

The data being passed from a tidy_ distribution function.

Value

A tibble

Details

This function will take in a tibble and returns the statistics of the given type of tidy_ distribution. It is required that data be passed from a tidy_ distribution function.

Author

Steven P. Sanderson II, MPH

Examples

library(dplyr)

tidy_pareto() |>
  util_pareto_stats_tbl() |>
  glimpse()
#> Rows: 1
#> Columns: 17
#> $ tidy_function     <chr> "tidy_pareto"
#> $ function_call     <chr> "Pareto c(10, 0.1)"
#> $ distribution      <chr> "Pareto"
#> $ distribution_type <chr> "continuous"
#> $ points            <dbl> 50
#> $ simulations       <dbl> 1
#> $ mean              <dbl> 0.1111111
#> $ mode_lower        <dbl> 0.1
#> $ range             <chr> "0 to Inf"
#> $ std_dv            <dbl> 0.0124226
#> $ coeff_var         <dbl> 0.000154321
#> $ skewness          <dbl> 2.811057
#> $ kurtosis          <dbl> 14.82857
#> $ computed_std_skew <dbl> 2.313421
#> $ computed_std_kurt <dbl> 9.375681
#> $ ci_lo             <dbl> 0.0003162781
#> $ ci_hi             <dbl> 0.04447684