# Load example dataset included in the package
data(mixture_example)
# Estimate using GMM (recommended) with full summary statistics
est_mixture(
ni = mixture_example$ni,
xbar = mixture_example$xbar,
s2 = mixture_example$s2,
mi = mixture_example$mi,
method = "gmm"
)
# Estimate using naive likelihood method (only means used)
est_mixture(
ni = mixture_example$ni,
xbar = mixture_example$xbar,
mi = mixture_example$mi,
method = "naive"
)
Run the code above in your browser using DataLab