Skip to contents

Returns distribution statistics in a tibble.

Usage

util_negative_binomial_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_negative_binomial() |>
  util_negative_binomial_stats_tbl() |>
  glimpse()
#> Rows: 1
#> Columns: 17
#> $ tidy_function     <chr> "tidy_negative_binomial"
#> $ function_call     <chr> "Negative Binomial c(1, 0.1)"
#> $ distribution      <chr> "Negative Binomial"
#> $ distribution_type <chr> "discrete"
#> $ points            <dbl> 50
#> $ simulations       <dbl> 1
#> $ mean              <dbl> 0.1111111
#> $ mode_lower        <dbl> 0
#> $ range             <chr> "0 to Inf"
#> $ std_dv            <dbl> 0.3513642
#> $ coeff_var         <dbl> 0.1234568
#> $ skewness          <dbl> 3.478505
#> $ kurtosis          <dbl> 14.1
#> $ computed_std_skew <dbl> 0.8953706
#> $ computed_std_kurt <dbl> 3.049842
#> $ ci_lo             <dbl> 0
#> $ ci_hi             <dbl> 22.775