tidy_multi_single_dist: Generate Multiple Tidy Distributions of a single type

View source: R/combine-multi-single-dist-tbl.R

tidy_multi_single_distR Documentation

Generate Multiple Tidy Distributions of a single type

Description

Generate multiple distributions of data from the same tidy_ distribution function.

Usage

tidy_multi_single_dist(.tidy_dist = NULL, .param_list = list())

Arguments

.tidy_dist

The type of tidy_ distribution that you want to run. You can only choose one.

.param_list

This must be a list() object of the parameters that you want to pass through to the TidyDensity tidy_ distribution function.

Details

Generate multiple distributions of data from the same tidy_ distribution function. This allows you to simulate multiple distributions of the same family in order to view how shapes change with parameter changes. You can then visualize the differences however you choose.

Value

A tibble

Author(s)

Steven P. Sanderson II, MPH

See Also

Other Multiple Distribution: tidy_combine_distributions()

Examples

tidy_multi_single_dist(
  .tidy_dist = "tidy_normal",
  .param_list = list(
    .n = 50,
    .mean = c(-1, 0, 1),
    .sd = 1,
    .num_sims = 3
  )
)


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