Description Usage Arguments Value Examples
E-Step estimate the parameter of sigma.
1 |
data |
Contingency table, matrix format of three columns, first column lower limits, second column upper limits, and third column observed frequencies. The current state of the parameters, vector containing mean and sd. |
simzz |
The matrix, which is the samples simulated over the intervals, of the zmcem function. |
mupd |
Is the updated estimates of mu. |
Return sigma which are the estimates of variance in E-step.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | simdataaaa <- em.univ::univ_simul(ncol_matrix=1,
n=50,
nclass = 10,
mean = 68,
sd = 1.80,
fr_breaks=c(62,64,66,68,70,72,74,76,78))
zm_matriz <- em.univ::zmcem(theta=c(67,2),data = simdataaaa$simul_data[,,1])
mu_estimate <- em.univ::mumcem(data = simdataaaa$simul_data[,,1], simz = zm_matriz)
sigma_estimate <- em.univ::sigmamcem(data = simdataaaa$simul_data[,,1],
simz = zm_matriz,
mupd = mu_estimate)
sigma_estimate
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.