discreteUniform: Discrete Uniform Distribution

Description Usage Arguments Author(s) Examples

Description

Discrete Uniform Distribution

Usage

1
2
3
4
pdiscunif(q, size)
qdiscunif(p, size)
ddiscunif(q, size)
rdiscunif(n, size)

Arguments

size

parameter of distribution. Numbers from 1 to size are equally likely.

q

Quantiles.

p

Probability.

n

number of items in the random sample.

Author(s)

Richard M. Heiberger <rmh@temple.edu>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
  q <- seq(-.5, 7.5, .5)

  pp <- pdiscunif(q, 6)

  ## xyplot(pp ~ q,
  ##        scales=list(
  ##        x=list(at=floor(min(q)):ceiling(max(q))),
  ##        y=list(at=seq(0, 1, .1))))

  qq <- qdiscunif(pp, 6)

  dd <- ddiscunif(q, 6)

  cbind(q, pp, qq, dd)

  rdiscunif(12, 6)

HH documentation built on Nov. 28, 2020, 9:06 a.m.

Related to discreteUniform in HH...