Skip to main content

Principal Component Analysis

Principal component analysis.

Options

  • 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() {}.

Examples

Live Editor
Result
ReferenceError: Provider is not defined