MuMCEM: E-Step estimate the parameter of mu.

Description Usage Arguments Value Examples

Description

E-Step estimate the parameter of mu.

Usage

1
mumcem(data, simz)

Arguments

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.

simz

The matrix, which is the samples simulated over the intervals, of the zmcem function.

Value

Return mu which are the estimates of mean in E-step.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 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)
 mu_estimate

JoaoPedro2536/univ.em documentation built on Dec. 18, 2021, 1:38 a.m.