Beta-Binomial probabilities of ordinal responses, given feeling parameter for each observation
Beta-Binomial probabilities of ordinal responses, given feeling parameter for each observation
Compute the Beta-Binomial probabilities of given ordinal responses, with feeling parameter specified for each observation, and with the same overdispersion parameter for all the responses.
betabinomialcsi(m,ordinal,csivett,phi)
Arguments
m: Number of ordinal categories
ordinal: Vector of ordinal responses. Missing values are not allowed: they should be preliminarily deleted or imputed
csivett: Vector of feeling parameters of the Beta-Binomial distribution for given ordinal responses
phi: Overdispersion parameter of the Beta-Binomial distribution
Returns
A vector of the same length as ordinal: each entry is the Beta-Binomial probability for the given observation for the corresponding feeling and overdispersion parameters.