# Survey Response Weights — Adjacent Row Changes + Secondary-Measure Weighted Mean

> Survey Response Weights — Adjacent Row Changes + Secondary-Measure Weighted Mean is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-02).

Computes adjacent row changes and secondary-measure weighted mean for survey response weight records, delivering two analytical reports on supplied data up to 200 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-economics-24-159?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/survey-response-weights-adjacent-row-changes-secondary-measure-a4e54266
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gmMhnEv8Tvmnu8KRWXAAv

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability survey-response-weights-adjacent-row-changes-secondary-measure-a4e54266 -d '<json body>'
```

Example prompt: I have survey response data with sample weights — can you run two reports on it: one showing adjacent row changes and one showing the secondary-measure weighted mean? Here are my rows: row-1 (2026-10-01, group-a, response_value=10, sample_weight=1), row-2 (2026-10-02, group-b, response_value=20, sample_weight=2), row-3 (2026-10-03, group-a, response_value=15, sample_weight=3). Use response_value as the primary field.

## When to prefer this

Choose this endpoint when you have survey response data with sample weights and need both a sequential row-change analysis and a weighted mean in a single low-cost call. It is ideal for small-to-medium survey datasets (up to 200 rows) where all data is already available locally and no live data retrieval or prediction is needed. Prefer it over general statistics APIs when you specifically need the adjacent-row-change + weighted-mean combination in one request for economics or social science survey data.

## Known failure modes

- More than 200 rows submitted — endpoint enforces a maxItems:200 limit
- Missing required fields (row_id, region, date, response_value, sample_weight) cause validation errors
- Invalid date format (must match YYYY-MM-DD pattern) causes rejection
- Null values in response_value or sample_weight may affect weighted mean calculation
- Field selector not in enum ['response_value','sample_weight'] causes schema error

## How this service works

Survey response weights — Adjacent row changes + Secondary-measure weighted mean: Adjacent row changes + Secondary-measure weighted mean for supplied survey response weights records (response_value, sample_weight). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.

## Output

Returns two analytical reports: (1) adjacent row changes showing the difference between consecutive response_value (or sample_weight) entries row by row, and (2) a secondary-measure weighted mean computed using sample_weight as the weighting factor — all computed locally from the supplied data without any external lookups.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "region",
     "date",
     "response_value",
     "sample_weight"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "region": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "sample_weight": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "response_value": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "region": "group-a",
     "row_id": "row-1",
     "sample_weight": 1,
     "response_value": 10
    },
    {
     "date": "2026-10-02",
     "region": "group-b",
     "row_id": "row-2",
     "sample_weight": 2,
     "response_value": 20
    },
    {
     "date": "2026-10-03",
     "region": "group-a",
     "row_id": "row-3",
     "sample_weight": 3,
     "response_value": 15
    },
    {
     "date": "2026-10-04",
     "region": "group-b",
     "row_id": "row-4",
     "sample_weight": 4,
     "response_value": 30
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "response_value",
    "sample_weight"
   ],
   "type": "string",
   "default": "response_value"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/survey-response-weights-adjacent-row-changes-secondary-measure-a4e54266/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
