runEM_1: EM on the data without case 3.

Description Usage Arguments Value

Description

Simply take the data without case 3 as independent Gaussian mixture and estimate the hyperparameters.

Usage

1
runEM_1(dat_df, EM_threshold = 1e-04, n1, n2, init_para_est, niter)

Arguments

dat_df

The input data frame.

EM_threshold

The threshold of parameter diffrences among iterations. Default: 0.0001. Control the number of EM iterations.

n1

The sample size of group 1.

n2

The sample size of group 2.

init_para_est

The initial parameter estimates.

niter

The upper limit for number of EM iterations.

Value

The number of iterations and the EM estimate of hyperparameters together with proportion parameters in the setting of no case 3.


ananjysong/HMMdmdv documentation built on May 13, 2019, 5:33 p.m.