Description Usage Arguments Value
Computes the bootstrap critical values of the modified EM test.
1 2 | regmixCritBoot(y, x, parlist, z = NULL, values = NULL, ninits = 100,
nbtsp = 199, parallel = 0.75, cl = NULL)
|
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) |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.