urn_sampling_distribution: The exact sampling distribution for an urn problem

View source: R/urns.R

urn_sampling_distributionR Documentation

The exact sampling distribution for an urn problem

Description

The exact sampling distribution for an urn problem

Usage

urn_sampling_distribution(
  red = 50,
  black = 50,
  sample_size = 25,
  red_proportion = NULL,
  observed_red = NULL,
  replace = TRUE
)

Arguments

red

The number of red marbles in the urn.

black

The number of black marbles in the urn.

sample_size

The number of marbles to draw from the urn.

red_proportion

As an alternative to specifying the number of red and black marbles in the jar, the proportion of red marbles can be specified. If red_proportion is specified, then red and black will be ignored.

observed_red

The number of red marbles in a sample. This is optional. TODO more documentation here please

replace

Is the sampling with or without replacement?

Examples

urn_sampling_distribution(sample_size = 10)

mark-andrews/isdsr-pkg documentation built on Sept. 13, 2022, 11:47 p.m.