Description Usage Arguments Value Examples
Calculate the probabilities conditioned on parameters mu and sigma more likely to generate dataset X
1 | nm_expected(X, mu, sigma, nsim = 1000, parallel.cluster = NULL)
|
X |
count data set |
mu |
paramater mu |
sigma |
parameter sigma |
nsim |
number of simulation used to calculated the expected values |
parallel.cluster |
instance of a Socket Cluster (see function makeCluster from package parallel) |
the expected probabilities
1 2 3 4 | X = rnormalmultinomial(100, 100, rep(0,4), diag(4))
fit = nm_fit(X, verbose = T)
P = nm_expected(X, fit$mu, fit$sigma)
head(P)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.