Skip to contents

Returns distribution statistics in a tibble.

Usage

util_beta_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_beta() |>
  util_beta_stats_tbl() |>
  glimpse()
#> Rows: 1
#> Columns: 17
#> $ tidy_function     <chr> "tidy_beta"
#> $ function_call     <chr> "Beta c(1, 1, 0)"
#> $ distribution      <chr> "Beta"
#> $ distribution_type <chr> "continuous"
#> $ points            <dbl> 50
#> $ simulations       <dbl> 1
#> $ mean              <dbl> 0.5
#> $ mode              <chr> "undefined"
#> $ range             <chr> "0 to 1"
#> $ std_dv            <dbl> 0.2886751
#> $ coeff_var         <dbl> 0.5773503
#> $ skewness          <dbl> 0
#> $ kurtosis          <lgl> NA
#> $ computed_std_skew <dbl> 0.2040789
#> $ computed_std_kurt <dbl> 1.900449
#> $ ci_lo             <dbl> 0.016034
#> $ ci_hi             <dbl> 0.9453242