Skip to contents

Returns distribution statistics in a tibble.

Usage

util_triangular_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_triangular() |>
  util_triangular_stats_tbl() |>
  glimpse()
#> Rows: 1
#> Columns: 19
#> $ tidy_function     <chr> "tidy_triangular"
#> $ function_call     <chr> "Triangular c(0, 1, 0.5)"
#> $ distribution      <chr> "Triangular"
#> $ distribution_type <chr> "continuous"
#> $ points            <dbl> 50
#> $ simulations       <dbl> 1
#> $ mean              <dbl> 0.5
#> $ median            <dbl> 0.3535534
#> $ mode              <dbl> 1
#> $ range_low         <dbl> 0.1226216
#> $ range_high        <dbl> 0.8937389
#> $ variance          <dbl> 0.04166667
#> $ skewness          <dbl> 0
#> $ kurtosis          <dbl> -0.6
#> $ entropy           <dbl> -0.6931472
#> $ computed_std_skew <dbl> 0.140758
#> $ computed_std_kurt <dbl> 2.149377
#> $ ci_lo             <dbl> 0.1410972
#> $ ci_hi             <dbl> 0.856655