Description Usage Arguments Value Examples
E-Step For Variance Estimate
1 | ssest(theta, bl, bu, muupdate, freq)
|
theta |
Initial theta value, vector containing mean and sd. |
bl |
Lower bound of the intervals, values in vector, starting from -inf. |
bu |
Upper bound of the intervals, values in vector, ending with +inf. |
muupdate |
Is the updated estimates of mu. |
freq |
Frequency over the intervals, values in vector. |
Return ss which are the estimates of sigma (variance) in E-step.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | library(em.univ)
library(stats)
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))
ssnew <- em.univ::ssest(theta=c(67,2),
bl=simdataaaa$simul_data[,1,1],
bu=simdataaaa$simul_data[,2,1],
muupdate=mest(theta=c(67,2),
bl=simdataaaa$simul_data[,1,1],
bu=simdataaaa$simul_data[,2,1],
freq=simdataaaa$simul_data[,3,1]),
freq=simdataaaa$simul_data[,3,1])
ssnew
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.