Skip to contents

Returns distribution statistics in a tibble.

Usage

util_zero_truncated_poisson_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_zero_truncated_poisson() |>
  util_zero_truncated_poisson_stats_tbl() |>
  glimpse()
#> Rows: 1
#> Columns: 17
#> $ tidy_function     <chr> "tidy_zero_truncated_poisson"
#> $ function_call     <chr> "Zero Truncated Poisson c(1)"
#> $ distribution      <chr> "Zero Truncated Poisson"
#> $ distribution_type <chr> "discrete"
#> $ points            <dbl> 50
#> $ simulations       <dbl> 1
#> $ mean              <dbl> 1
#> $ mode              <dbl> 1
#> $ range             <chr> "1 to Inf"
#> $ std_dv            <dbl> 1
#> $ coeff_var         <dbl> 1
#> $ skewness          <dbl> 1
#> $ kurtosis          <dbl> 4
#> $ computed_std_skew <dbl> 1.19783
#> $ computed_std_kurt <dbl> 3.517986
#> $ ci_lo             <dbl> 1
#> $ ci_hi             <dbl> 3