SoPHIE API Documentation

Regress API Documentation

API to run OLS Regressions

Init: $regressApi = $api->get('sophielabs_regress');

Method: $regressApi->__construct(...)

Parameters:

  • Sophie_Context $context

Method: $regressApi->linear(...)

Returns the results of a linear regression for the two

Parameters:

  • Array $x
  • Array $y