Print and Summary | R Documentation |
Several classes are declared in EMCluster, and these are functions to print and summary objects.
## S3 method for class 'emret'
print(x, digits = max(4, getOption("digits") - 3), ...)
## S3 method for class 'emret'
summary(object, ...)
## S3 method for class 'svd'
summary(object, ...)
x |
an object with the class attributes. |
digits |
for printing out numbers. |
object |
an object with the class attributes. |
... |
other possible options. |
These are useful functions for summarizing and debugging.
The results will cat or print on the STDOUT by default.
Wei-Chen Chen wccsnow@gmail.com and Ranjan Maitra.
https://www.stat.iastate.edu/people/ranjan-maitra
init.EM
, emcluster
, starts.via.svd
.
## Not run:
library(EMCluster, quietly = TRUE)
x2 <- da2$da
emobj <- list(pi = da2$pi, Mu = da2$Mu, LTSigma = da2$LTSigma)
eobj <- e.step(x2, emobj = emobj)
emobj <- m.step(x2, emobj = eobj)
summary(emobj)
ret <- starts.via.svd(x2, nclass = 10, method = "kmeans")
summary(ret)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.