Skip to contents

Returns distribution statistics in a tibble.

Usage

util_chisquare_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_chisquare() |>
  util_chisquare_stats_tbl() |>
  glimpse()
#> Rows: 1
#> Columns: 17
#> $ tidy_function     <chr> "tidy_chisquare"
#> $ function_call     <chr> "Chisquare c(1, 1)"
#> $ distribution      <chr> "Chisquare"
#> $ distribution_type <chr> "continuous"
#> $ points            <dbl> 50
#> $ simulations       <dbl> 1
#> $ mean              <dbl> 1
#> $ median            <dbl> 0.3333333
#> $ mode              <chr> "undefined"
#> $ std_dv            <dbl> 1.414214
#> $ coeff_var         <dbl> 1.414214
#> $ skewness          <dbl> 2.828427
#> $ kurtosis          <dbl> 15
#> $ computed_std_skew <dbl> 1.162501
#> $ computed_std_kurt <dbl> 3.709656
#> $ ci_lo             <dbl> 0.02663531
#> $ ci_hi             <dbl> 6.90002