Skip to main content

Principal Component Analysis

Principal component analysis.


  • data | object (required): object of value arrays. Default: none.
  • variables | array<string> (required): names of variables used for clustering. Default: none.
  • center | boolean: center values by subtracting the mean. Default: true.
  • scale | boolean: scale values by dividing with the standard deviation. Default: false.
  • noComponents | number: number of components supplied to the onResult callback. Default: 0.
  • onResult | function: callback invoked with model object and components. Default: onResult() {}.


Live Editor
Last updated on by Planeshifter