tidy_combine_distributions: Combine Multiple Tidy Distributions of Different Types

View source: R/combine-tidy-distributions-tbl.R

tidy_combine_distributionsR Documentation

Combine Multiple Tidy Distributions of Different Types

Description

This allows a user to specify any n number of tidy_ distributions that can be combined into a single tibble. This is the preferred method for combining multiple distributions of different types, for example a Gaussian distribution and a Beta distribution.

This generates a single tibble with an added column of dist_type that will give the distribution family name and its associated parameters.

Usage

tidy_combine_distributions(...)

Arguments

...

The ... is where you can place your different distributions

Details

Allows a user to generate a tibble of different tidy_ distributions

Value

A tibble

Author(s)

Steven P. Sanderson II, MPH

See Also

Other Multiple Distribution: tidy_multi_single_dist()

Examples


tn <- tidy_normal()
tb <- tidy_beta()
tc <- tidy_cauchy()

tidy_combine_distributions(tn, tb, tc)

## OR

tidy_combine_distributions(
  tidy_normal(),
  tidy_beta(),
  tidy_cauchy(),
  tidy_logistic()
)


TidyDensity documentation built on Nov. 2, 2023, 5:38 p.m.