ST_Unordered function

Simulating Random Observations from an Arbitrary Distribution (ordered probabilities)

Simulating Random Observations from an Arbitrary Distribution (ordered probabilities)

Simulation observations from an arbitrary discrete distribution with probabilities arranged in desending/ascending order.

ST_Unordered(N, x, p_x)

Arguments

  • N: number of required random observations
  • x: the possible values of the RV
  • p_x: the probability vector associated with x

Author(s)

Prabhanjan N. Tattar

See Also

sample

Examples

N <- 1e2 x <- 1:10 p_x <- c(0.05,0.17,0.02,0.14,0.11,0.06,0.05,0.04,0.17,0.19) ST_Unordered(N,x,p_x)
  • Maintainer: Prabhanjan Tattar
  • License: GPL-2
  • Last published: 2015-09-05

Useful links