regmixCritBoot: regmixCritBoot

Description Usage Arguments Value

Description

Computes the bootstrap critical values of the modified EM test.

Usage

1
2
regmixCritBoot(y, x, parlist, z = NULL, values = NULL, ninits = 100,
  nbtsp = 199, parallel = 0.75, cl = NULL)

Arguments

y

n by 1 vector of data for y

x

n by q vector of data for x

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

ninits

The number of initial candidates to be generated

nbtsp

The number of bootstrap observations; by default, it is set to be 199

parallel

Determines what percentage of available cores are used, represented by a double in [0,1]. 0.75 is default.

cl

Cluster used for parallelization (optional)

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.