uniprobs {CorrBin} | R Documentation |
Calculates the marginal probability of each event type for exchangeable correlated multinomial
data based on joint probability estimates calculated by the jointprobs
function.
uniprobs(jp, type = attr(jp, "type"))
jp |
the output of |
type |
one of c("averaged","cluster","mc") - the type of joint probability. By default,
the |
a list of estimated probability of each outcome by treatment group. The elements are either
matrices or vectors depending on whether cluster-size specific estimates were requested
(type="cluster"
) or not.
jointprobs
for calculating the joint probability arrays
data(dehp)
tau <- jointprobs(dehp, type="averaged")
uniprobs(tau)
#separately for each cluster size
tau2 <- jointprobs(dehp, type="cluster")
uniprobs(tau2)