widgetHypergeometric: Widget for a hypergeometric distribution

Description Usage Arguments Details Value See Also Examples

View source: R/widgetHypergeometric.R

Description

This widget needs an widgetObserve to update M and n if N changes.

Usage

1
2
widgetHypergeometric(inputId, N = list(), M = list(), n = list(),
  lang = NULL)

Arguments

inputId

widget name

N

sliderInput parameter for the population size

M

sliderInput parameter for the number of success states in the population

n

sliderInput parameter for the number of draws

lang

language widget

Details

Note that the widget does not follow the parameter definition of dhyper. The parameter N from widgetHypergeometric is equal to m+n from dhyper.

Value

a widget object (environment)

See Also

sliderInput, dhyper

Examples

1
2
3
4
5
6
## Not run: 
  shinyDemo('testHypergeometric')
  shinyDemo('testHypergeometricLang')
  shinyDemo('mmstatDiscreteDistribution')

## End(Not run)

sigbertklinke/mmstat documentation built on May 14, 2019, 8:36 a.m.