Learn R Programming

emax.glm (version 0.1.2)

init.random: Method to initialize EM parameters. Purely standard normal noise.

Description

Method to initialize EM parameters. Purely standard normal noise.

Usage

init.random(x, K, noise = 1)

Arguments

x

An n-by-p design matrix.

K

Number of EM classes to be fit.

noise

Standard deviation of the white noise to be applied when generating random initial states.

Value

A K-length list, each holding parameters.

Examples

Run this code
# NOT RUN {
x <- model.matrix(~ 1 + factor(wool) + factor(tension), data = warpbreaks)

init.random(x = x, K = 2)

# }

Run the code above in your browser using DataLab