{"uid":"cap_iEWESPIxS4NejgiMXrnLn","slug":"survey-response-weights-duplicate-key-report-trailing-mean-series-b564f0dd","name":"Survey Response Weights — Duplicate Key Report + Trailing Mean Series","description":"Survey response weights — Duplicate key report + Trailing mean series: Duplicate key report + Trailing mean series 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-061?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"},"window":{"type":"integer","default":2,"maximum":200,"minimum":2}}},"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_M6QXQRrg6kOD6aPDNNJgn","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":"Analyzes survey response weight records to produce a duplicate key report and a trailing mean series for up to 200 rows.","exampleAgentPrompt":"Can you check my survey response data for duplicate row IDs and also compute a trailing mean of response_value with a window of 3, using these records: row-1 / group-a / 2026-10-01 / response_value=10 / sample_weight=1, row-2 / group-b / 2026-10-02 / response_value=20 / sample_weight=2, row-3 / group-a / 2026-10-03 / response_value=15 / sample_weight=3?","exampleUseCases":[{"title":"Survey data quality audit","prompt":"I have 150 rows of survey response records with row IDs, regions, dates, response values, and sample weights — can you check them for duplicate row IDs and also give me a trailing mean of response_value with a window of 5?"},{"title":"Rolling mean for weighted panel data","prompt":"Run a trailing mean series on the sample_weight field across my survey dataset with a window of 4 — here are the rows: row-1 / group-a / 2026-10-01 / response_value=10 / sample_weight=1 through row-4 / group-b / 2026-10-04 / response_value=30 / sample_weight=4."},{"title":"Detecting duplicate respondent IDs","prompt":"I think some respondents may have been entered twice in my survey export — can you run a duplicate key report on these records and flag any repeated row_id values?"}],"resultDescription":"Returns two independent analytical reports: (1) a duplicate key report identifying any repeated row_id values across the submitted records, and (2) a trailing mean series showing the rolling average of the specified field (response_value or sample_weight) computed over the given window size, covering up to 200 input rows.","failureModes":["Input array is empty or missing (minItems:1 violated)","Input exceeds 200 rows (maxItems:200 violated)","Invalid date format (must match YYYY-MM-DD pattern)","Window parameter outside valid range (2–200)","Null values in response_value or sample_weight may affect mean computation","row_id exceeds maxLength of 80 characters","region exceeds maxLength of 80 characters","Payment not fulfilled — endpoint requires 0.01 USDC via x402 protocol"],"whenToPreferThis":"Choose this endpoint when you need both a duplicate key audit and a rolling mean series on survey response weight data in a single $0.01 call. It is ideal for economists, researchers, or analysts who have already collected survey microdata and want lightweight, local analytical processing without external data lookups or predictions. Prefer this over general-purpose analytics tools when you need both data quality checking and time-series smoothing in one step on a small dataset (≤200 rows).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:39:08.191Z","isFirstParty":false,"canonicalSlug":"survey-response-weights-duplicate-key-report-trailing-mean-series-b564f0dd"}