powered by
Method to initialize EM parameters. Purely standard normal noise.
init.random(x, K, noise = 1)
An n-by-p design matrix.
Number of EM classes to be fit.
Standard deviation of the white noise to be applied when generating random initial states.
A K-length list, each holding parameters.
# 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