{"uid":"cap_gmMhnEv8Tvmnu8KRWXAAv","slug":"survey-response-weights-adjacent-row-changes-secondary-measure-a4e54266","name":"Survey Response Weights — Adjacent Row Changes + Secondary-Measure Weighted Mean","description":"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.","url":"https://market.datapackvibe.com/x402/assistant-ib26-economics-24-159?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1XqcOmehLKQzwBZb6a9iV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Survey panel trend analysis","prompt":"I have 50 survey rows with response_value and sample_weight columns — can you calculate both the adjacent row changes in response_value and the weighted mean across the whole dataset? Rows span from 2025-01-01 to 2025-02-19 across regions north and south."},{"title":"Polling data weight verification","prompt":"I've got polling data with region, date, response values, and sample weights for about 120 respondents. Can you run the adjacent row change report and the secondary-measure weighted mean report on my response_value field so I can check how the weighted average compares to raw swings?"},{"title":"Economics survey weight audit","prompt":"I need to audit my economics survey dataset — it has 80 rows with dates from 2024-06-01 to 2024-08-19, regions A through D, response values, and sample weights. Please compute adjacent row differences and the sample-weight-based weighted mean for the response_value field."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:35:40.099Z","isFirstParty":false,"canonicalSlug":"survey-response-weights-adjacent-row-changes-secondary-measure-a4e54266"}