Learn R Programming

updog (version 1.2.0)

uni_obj: Objective function optimized by uni_em.

Description

Objective function optimized by uni_em.

Usage

uni_obj(pivec, weight_vec, lmat, lambda)

Arguments

pivec

The current parameters.

weight_vec

A vector of weights. Each element of weight_vec corresponds to a column of lmat.

lmat

A matrix of inner weights. The columns are the "individuals" and the rows are the "classes."

lambda

The penalty on the pi's. Should be greater than 0 and really really small.

Value

The objective optimized by uni_em during that separate unimodal EM algorithm.