Skip to contents

Returns distribution statistics in a tibble.

Usage

util_hypergeometric_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_hypergeometric() |>
  util_hypergeometric_stats_tbl() |>
  glimpse()
#> Warning: NaNs produced
#> Rows: 1
#> Columns: 18
#> $ tidy_function     <chr> "tidy_hypergeometric"
#> $ function_call     <chr> "Hypergeometric c(0, 0, 0)"
#> $ distribution      <chr> "Hypergeometric"
#> $ distribution_type <chr> "discrete"
#> $ points            <dbl> 50
#> $ simulations       <dbl> 1
#> $ mean              <dbl> NaN
#> $ mode_lower        <dbl> -0.5
#> $ mode_upper        <dbl> 0.5
#> $ range             <chr> "0 to Inf"
#> $ std_dv            <dbl> NaN
#> $ coeff_var         <dbl> NaN
#> $ skewness          <dbl> NaN
#> $ kurtosis          <dbl> NaN
#> $ computed_std_skew <dbl> NaN
#> $ computed_std_kurt <dbl> NaN
#> $ ci_lo             <dbl> 0
#> $ ci_hi             <dbl> 0