Learn R Programming

CEDA (version 1.1.1)

EMFit: Fitting multi-component normal mixture models by R package mixtools

Description

The function normalmixEM in R package mixtools is employed for fitting multi-component normal mixture models.

Usage

EMFit(x, k0, mean_constr, sd_constr, npara, d0)

Value

Normal mixture model fit and BIC value of the log-likelihood

Arguments

x

A numeric vector

k0

Number of components in the normal mixture model

mean_constr

A constrain on means of components

sd_constr

A constrain on standard deviations of components

npara

Number of parameters

d0

Number of times for fitting mixture model using different starting values