v1

latestOpenAPI 3.0.02026-07-13167.2 KB

Returns regression analysis.

post/regression/api

Request body

keystring required

api key

outcome_variablestring required

name of the desired outcome variable

ignore_variablesobject[]
convert_date_tostring

convert dates to either month (1-12) or week (1-52)

dataobject[] required

Example request

{
  "key": "abc123",
  "outcome_variable": "sales",
  "ignore_variables": [
    "VAT",
    "post code"
  ],
  "convert_date_to": "month",
  "data": [
    "25,female,30.2,0,yes,southwest,33900.65",
    "19,female,20.6,0,no,southwest,1731.677"
  ]
}

Response

A JSON array of data

OR

Example response

{
  "outcome_variable": "sales",
  "summary": [
    "state has a negligible (0) influence.",
    "discount has a small (2) influence. More discount makes sales higher"
  ],
  "paid": "true",
  "header": "sales regression analysis",
  "footer": "acme products ltd",
  "data_count": 9500,
  "number_observations": 9000,
  "number_tests": 500,
  "prediction_mean_accuracy": 106,
  "tested_variables": [
    "state",
    "date",
    "discount"
  ],
  "dates_converted_to": "week",
  "calls\"": {
    "this_month": 47,
    "limit": 100
  },
  "standardized_coefficients": [
    {
      "variable": "state",
      "coefficient": 0
    },
    {
      "variable": "discount",
      "coefficient": 2
    }
  ],
  "pdf": "https://scideas.net/services/regression/api/pdf/abc123-1641901999.9268.pdf"
}
All 1 operations