rmulti.one: Generate Random (0, 1) Multinomial Data

Description Usage Arguments Value Author(s) See Also Examples

Description

Generate random multinomial data in which all value no more than 1.

Usage

1
rmulti.one(size, p)

Arguments

size

Integer, the number of random samples from the multinomial distribution.

p

Numeric vector, probability vector for all categories (the sum of p should be 1).

Value

Random (0,1) vector

Author(s)

Taichi Wang <taichi43@stat.sinica.edu.tw>

See Also

rmultinom

Examples

1
rmulti.one(size=5, p=rep(1/10,10))

SNscan documentation built on May 2, 2019, 8:26 a.m.