Calculate observed-data sufficient statistics, marginally-observed summary
statistics or enumerate all possible observed patterns from a multivariate multinomial dataset.
A data.frame containing either sufficient statistics or possible observed patterns.
Arguments
dat
A data.frame. All variables must be factors.
output
A string specifying the desired output. One of c("x_y", "z_Os_y", "possible.obs").
"x_y" indicates the observed-data sufficient statistics, "z_Os_y" indicates the
marginally-observed summary statistics, and "possible.obs" indicates the possible observed
patterns.