Learn R Programming

archetypal (version 1.3.1)

print.archetypal: Print an object of the class archetypal.

Description

It prints the output of archetypal

Usage

# S3 method for archetypal
print(x, ...)

Arguments

x

An object of the class archetypal

...

Other arguments (ignored)

Details

Since Archetypal Analysis (AA) is essentially one more matrix decomposition of the form Y ~ ABY, it is reasonable to print:

  1. the \(kappas \times d\) matrix of archetypes found

  2. the \(n \times kappas\) matrix A such that Y ~ ABY or Frobenius norm ||Y-ABY|| is minimum

  3. the \(kappas \times n\) matrix B such that Y ~ ABY or Frobenius norm ||Y-ABY|| is minimum

Examples

Run this code
{# \donttest{
## Use the sample data "wd2"
data(wd2)
aa=archetypal(wd2, 3)
print(aa)
# }
}

Run the code above in your browser using DataLab