{"uid":"cap_8M9chWnGmp9NmYXKtppq5","slug":"record-routing-analytics-secondary-measure-weighted-mean-explicit-99df13bb","name":"Record Routing Analytics — Secondary-Measure Weighted Mean + Explicit Missing-Value Fill","description":"Record routing — Secondary-measure weighted mean + Explicit missing-value fill: Secondary-measure weighted mean + Explicit missing-value fill for supplied record routing records (accepted_records, rejected_records). 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-analytics-19-187?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","accepted_records","rejected_records"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"dataset_group":{"type":"string","default":"","maxLength":80},"accepted_records":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"rejected_records":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","dataset_group":"group-a","accepted_records":10,"rejected_records":1},{"date":"2026-10-02","row_id":"row-2","dataset_group":"group-b","accepted_records":20,"rejected_records":2},{"date":"2026-10-03","row_id":"row-3","dataset_group":"group-a","accepted_records":15,"rejected_records":3},{"date":"2026-10-04","row_id":"row-4","dataset_group":"group-b","accepted_records":30,"rejected_records":4}],"maxItems":200,"minItems":1},"field":{"enum":["accepted_records","rejected_records"],"type":"string","default":"accepted_records"},"method":{"enum":["zero","mean","median"],"type":"string","default":"median"}}},"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_6K53RVePN4JhWCiGgvQOb","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 a secondary-measure weighted mean and fills missing values explicitly for up to 200 record routing rows (accepted_records, rejected_records), returning 2 analytical reports.","exampleAgentPrompt":"I have 4 rows of daily record routing data — group-a had 10 accepted and 1 rejected on 2026-10-01, group-b had 20 accepted and 2 rejected on 2026-10-02, group-a had null accepted and 3 rejected on 2026-10-03, and group-b had 30 accepted and 4 rejected on 2026-10-04 — can you compute the weighted mean of accepted_records (weighted by rejected_records) and fill any missing accepted_records values using the median?","exampleUseCases":[{"title":"Impute missing routing counts before aggregation","prompt":"I have a week of record routing data across two groups but some accepted_records values are null — can you fill those nulls with the median and give me the weighted mean of accepted_records weighted by rejected_records across all rows?"},{"title":"Compare acceptance rates by dataset group","prompt":"Here are 50 rows of daily routing records split across group-a and group-b with some missing rejected_records — fill the missing values with zero and compute the weighted mean of rejected_records so I can compare groups."},{"title":"Pre-process routing data before pipeline handoff","prompt":"Before I pass this 150-row routing dataset to my downstream pipeline I need the missing accepted_records filled using mean imputation and a weighted mean summary computed — can you run both of those analytics on my supplied data?"}],"resultDescription":"Returns 2 analytical reports: (1) a weighted mean of the specified field (accepted_records or rejected_records) using the other measure as the weight, and (2) the same dataset with missing values in the target field explicitly filled using the chosen method (zero, mean, or median). No external lookups or predictions are made; all computation is local.","failureModes":["Rows array exceeds 200 items — request rejected","Missing required fields (row_id, date, dataset_group) in any row — validation error","Invalid date format (not YYYY-MM-DD) — schema validation failure","Unknown fill method or field value outside allowed enums — error response","All values for the target field are null — weighted mean may be undefined or return an error"],"whenToPreferThis":"Choose this endpoint when you have tabular record routing data (accepted/rejected counts) with potential nulls and need both a weighted mean statistic and explicit missing-value imputation in a single $0.01 call. It is ideal for pre-processing routing metrics before downstream aggregation or reporting, supporting up to 200 rows. Prefer it over general statistics APIs when your data specifically tracks accepted_records and rejected_records by date and dataset group, and you need both analytics together.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:41.813Z","isFirstParty":false,"canonicalSlug":"record-routing-analytics-secondary-measure-weighted-mean-explicit-99df13bb"}