Given a matrix of multinomial probabilities where rows correspond to
observations and columns to categories (and each row sums to 1),
generates a matrix with the same number of rows as has
m columns. The columns represent multinomial cell numbers,
and within a row the columns are all samples from the same multinomial
distribution. The code is a modification of that in the
impute.polyreg function in the
matrix of probabilities
number of samples for each row of
an integer matrix having
1 2 3
Loading required package: lattice Loading required package: survival Loading required package: Formula Loading required package: ggplot2 Attaching package: 'Hmisc' The following objects are masked from 'package:base': format.pval, round.POSIXt, trunc.POSIXt, units 1 2 3 4 [1,] 0.080 0.205 0.315 0.40 [2,] 0.445 0.280 0.185 0.09
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.