plotseq.npEM {mixtools} | R Documentation |
Returns plots of the sequences of scalar parameter
estimates along iterations from an object of class npEM
.
## S3 method for class 'npEM': plotseq(x, ...)
x |
an object of class npEM , as output by npEM
or spEMsymloc |
... |
further parameters that are passed to plot |
plotseq.npEM
returns a figure with one plot for each component
proportion, and, in the case of spEMsymloc
, one plot for each
component mean.
plot.npEM
, rnormmix
,
npEM
, spEMsymloc
## Example from a normal location mixture n<-200 lambda <- c(1/3,2/3) mu<-c(0, 4); sigma<-rep(1, 2) x <- rnormmix(n, lambda, mu, sigma) b <- spEMsymloc(x, mu0=c(-1, 2), stochastic=FALSE) plotseq(b) bst <- spEMsymloc(x, mu0=c(-1, 2), stochastic=TRUE) plotseq(bst)