multinomial_stats {imputeMulti} | R Documentation |
Multinomial Sufficient Statistics
Description
Calculate observed-data sufficient statistics, marginally-observed summary statistics or enumerate all possible observed patterns from a multivariate multinomial dataset.
Usage
multinomial_stats(dat, output = c("x_y", "z_Os_y", "possible.obs"))
Arguments
dat |
A |
output |
A string specifying the desired output. One of |
Value
A data.frame
containing either sufficient statistics or possible observed patterns.
Examples
## Not run:
data(tract2221)
obs_suff_stats <- multinomial_stats(tract2221, output= "x_y")
marg_obs_suff_stats <- multinomial_stats(tract2221, output= "z_Os_y")
## End(Not run)
[Package imputeMulti version 0.8.4 Index]