Skip to contents

Returns distribution statistics in a tibble.

Usage

util_t_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_t() |>
  util_t_stats_tbl() |>
  glimpse()
#> Rows: 1
#> Columns: 17
#> $ tidy_function     <chr> "tidy_t"
#> $ function_call     <chr> "T Distribution c(1, 0)"
#> $ distribution      <chr> "t"
#> $ distribution_type <chr> "continuous"
#> $ points            <dbl> 50
#> $ simulations       <dbl> 1
#> $ mean              <dbl> 0
#> $ median            <dbl> 0
#> $ mode              <dbl> 0
#> $ std_dv            <chr> "undefined"
#> $ coeff_var         <chr> "undefined"
#> $ skewness          <dbl> 0
#> $ kurtosis          <chr> "undefined"
#> $ computed_std_skew <dbl> -1.486799
#> $ computed_std_kurt <dbl> 9.047857
#> $ ci_lo             <dbl> -12.75805
#> $ ci_hi             <dbl> 5.389358