Skip to contents

Returns distribution statistics in a tibble for Zero Truncated Binomial distribution.

Usage

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

Examples

library(dplyr)

set.seed(123)
tidy_zero_truncated_binomial(.size = 10, .prob = 0.1) |>
  util_zero_truncated_binomial_stats_tbl() |>
  glimpse()
#> Rows: 1
#> Columns: 15
#> $ tidy_function     <chr> "tidy_zero_truncated_binomial"
#> $ function_call     <chr> "Zero Truncated Binomial c(10, 0.1)"
#> $ distribution      <chr> "Zero Truncated Binomial"
#> $ distribution_type <chr> "discrete"
#> $ points            <dbl> 50
#> $ simulations       <dbl> 1
#> $ mean              <dbl> 1.58
#> $ mode              <dbl> 1
#> $ range             <chr> "1 to 4"
#> $ std_dv            <dbl> 0.8103917
#> $ coeff_var         <dbl> 0.5129061
#> $ computed_std_skew <dbl> 1.133051
#> $ computed_std_kurt <dbl> 3.212143
#> $ ci_lo             <dbl> 1
#> $ ci_hi             <dbl> 3