Last chance! 50% off unlimited learning
Sale ends in
iidspace(x, ntrials, probs = NULL)
x
.probs
column, where probs
is calculated to be the probability of observing the outcome in its row under the assumption of independence and identical distribution of draws from x
.x
according to the probabilities contained in probs
. The entries of probs
need not sum to one, but they will be normalized before any computations. If probs
is not specified, the equally likely model will be assumed.probspace
iidspace( 1:6, ntrials = 3) # same as rolldie(3)
iidspace( 1:6, ntrials = 3, probs = 3:8 ) # unbalanced die
Run the code above in your browser using DataLab