cm_step_2: Conditional-maximization step 2 (M-step 2)

Description Usage Arguments Value See Also

View source: R/cm.step.2.R

Description

Implements the conditional-maximization step 2 of the ECM algorithm for regularized copula-based mixture model.

Usage

1
cm_step_2(x, K, z, mvdc, margins, lambda, trace = TRUE)

Arguments

x

A numeric matrix or data frame of observations. Rows correspond to observations and columns correspond to variables.

K

The number of mixture components.

z

A numeric matrix representing the current value of the posterior probabilities of membership of the observations after the expectation step of the last iteration of the ECM algorithm. Columns are associated with a mixture component and rows are associated with observations.

mvdc

A list of objects of class mvdc. Each element of the list corresponds to a mixture component and contains the current estimates for the component distribution's marginal and previous estimates for copula parameters. The estimates for the marginal parameters should have been updated by cm.step.1.

margins

A character vector specifying the marginal distributions of the components in the mixture. The vector must have a length equal to the number of columns in x. Each element must be equal to "norm", "beta" or "gamma".

lambda

A numeric value indicating the value of the tuning parameter for regularization.

trace

A logical value indicating if an update regarding the step's progress should be displayed.

Value

A list with the following elements

See Also

cm.step.1 ecm


ben-j-barlow/rcbmm documentation built on Feb. 12, 2021, 9:14 a.m.