prob_check() throws an error if probs is not either one of the string
arguments 'uniform' or 'weighted', a length \(T\) vector with elements that
sum to one, or an \(T \times n\) matrix with columns that sum to one.
Arguments
- probs
A character, numeric vector, or numeric matrix. If character,
probsshould be equal to 'weighted' or 'uniform'. If vector, elements ofprobsmust sum to one. If matrix, rows ofprobsmust sum to one.- n
An integer. Number of columns if
probsis a matrix.- T
An integer. Length or number of rows in
probs.
