regmixPhiInit: regmixPhiInit

Description Usage Arguments Value

Description

Generates lists of parameters for initial candidates used by the modified EM test for mixture of normals.

Usage

1
regmixPhiInit(y, x, z = NULL, parlist, h, tau, ninits = 1)

Arguments

y

n by 1 vector of data for y

x

n by q matrix of data for x

z

n by p matrix of regressor associated with gam

parlist

The parameter estimates as a list containing alpha, mu, sigma, and gam in the form of (alpha = (alpha_1, ..., alpha_m), mu = (mu_1, ..., mu_m), sigma = (sigma_1, ..., sigma_m), gam = (gam_1, ..., gam_m))

h

h used as index for pivoting

tau

Tau used to split the h-th component

ninits

number of initial values to be generated

Value

A list with the following items:

alpha

m+1 by ninits matrix for alpha

mubeta

q+1 by m+1 by ninits array for mu and beta

sigma

m+1 by ninits matrix for sigma

gam

m+1 by ninits matrix for gam


hkasahar/normalregMix documentation built on May 17, 2019, 4 p.m.