Skip to contents

Returns distribution statistics in a tibble.

Usage

util_pareto1_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.

Examples

library(dplyr)

tidy_pareto1() |>
  util_pareto1_stats_tbl() |>
  glimpse()
#> Rows: 1
#> Columns: 17
#> $ tidy_function     <chr> "tidy_pareto_single_parameter"
#> $ function_call     <chr> "Single Param Pareto c(1, 1)"
#> $ distribution      <chr> "Pareto1"
#> $ distribution_type <chr> "Continuous"
#> $ points            <dbl> 50
#> $ simulations       <dbl> 1
#> $ mean              <dbl> Inf
#> $ mode_lower        <dbl> 1
#> $ range             <chr> "1 to Inf"
#> $ std_dv            <dbl> Inf
#> $ coeff_var         <dbl> Inf
#> $ skewness          <chr> "undefined"
#> $ kurtosis          <chr> "undefined"
#> $ computed_std_skew <dbl> 4.276114
#> $ computed_std_kurt <dbl> 20.46089
#> $ ci_lo             <dbl> 1.018218
#> $ ci_hi             <dbl> 88.8564