View source: R/print.archetypal.R
print.archetypal | R Documentation |
It prints the output of archetypal
## S3 method for class 'archetypal'
print(x, ...)
x |
An object of the class archetypal |
... |
Other arguments (ignored) |
Since Archetypal Analysis (AA) is essentially one more matrix decomposition of the form Y ~ ABY, it is reasonable to print:
the kappas \times d
matrix of archetypes found
the n \times kappas
matrix A such that Y ~ ABY or Frobenius norm ||Y-ABY|| is minimum
the kappas \times n
matrix B such that Y ~ ABY or Frobenius norm ||Y-ABY|| is minimum
{
## Use the sample data "wd2"
data(wd2)
aa=archetypal(wd2, 3)
print(aa)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.