Estimate own-price elasticity from history
ecommerce-profitability_price-elasticity-estimateOLS of ln(units) on ln(price) with optional week or month seasonal dummies, classical standard errors and a 95% t interval from caller price/quantity history. Price $0.04 USDC. POST /api/v1/ecommerce-profitability/price-elasticity-estimate. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"observations": "<observations>"
},
"name": "ecommerce-profitability_price-elasticity-estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seasonality | No | seasonality, string, one of none, week_of_year, month. Required. | none |
| observations | Yes | observations, array. Required. | |
| promoFlagField | No | promoFlagField, value. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | n. Number. | |
| r2 | No | r2. Number. | |
| ci95 | No | ci95. Array. | |
| sources | No | sources. Array. | |
| stdError | No | stdError. Number. | |
| warnings | No | warnings. Array. | |
| elasticity | No | elasticity. Number. | |
| limitations | No | limitations. Array. | |
| droppedZeroUnits | No | droppedZeroUnits. Number. | |
| priceVariationCv | No | priceVariationCv. Number. |