normalmixCrit: normalmixCrit

Description Usage Arguments Value

View source: R/normalmix_crit.R

Description

Computes the critical values of the modified EM test.

Usage

1
normalmixCrit(y, parlist, z = NULL, values = NULL, nrep = 10000)

Arguments

y

n by 1 vector of data

parlist

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

z

n by p matrix of regressor associated with gamma

values

3 by 1 Vector of length 3 (k = 1, 2, 3) at which the p-values are computed

nrep

The number of replications used to compute p-values

Value

A list with the following items:

crit

3 by 3 matrix of (0.1, 0.05, 0.01 critical values), jth row corresponding to k=j

pvals

A vector of p-values at k = 1, 2, 3


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