Skip to contents

Returns distribution statistics in a tibble.

Usage

util_lognormal_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_lognormal() |>
  util_lognormal_stats_tbl() |>
  glimpse()
#> Rows: 1
#> Columns: 18
#> $ tidy_function     <chr> "tidy_lognormal"
#> $ function_call     <chr> "Lognormal c(0, 1)"
#> $ distribution      <chr> "Lognormal"
#> $ distribution_type <chr> "continuous"
#> $ points            <dbl> 50
#> $ simulations       <dbl> 1
#> $ mean              <dbl> 1.648721
#> $ median            <dbl> 1
#> $ mode              <dbl> 0.3678794
#> $ range             <chr> "0 to Inf"
#> $ std_dv            <dbl> 2.161197
#> $ coeff_var         <dbl> 1.310832
#> $ skewness          <dbl> 6.184877
#> $ kurtosis          <dbl> 113.9364
#> $ computed_std_skew <dbl> 2.642107
#> $ computed_std_kurt <dbl> 10.86327
#> $ ci_lo             <dbl> 0.1948396
#> $ ci_hi             <dbl> 6.306592