From r-econ-data
Methods for calculating statistics and estimates using economic data. Use when user asks to calculate or estimate quantities like percentiles, means, medians, shares, counts, or regression coefficients or regression-adjusted statistics.
How this skill is triggered — by the user, by Claude, or both
Slash command
/r-econ-data:calculate-methodsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Often data over time is very noisy and moving averages can better extract signals. Use the R package `slider` for calculations over sliding windows like moving averages.
Often data over time is very noisy and moving averages can better extract signals. Use the R package slider for calculations over sliding windows like moving averages.
Use weighted.mean(vector, w = weight) for weighted means.
Use the MetricsWeighted package for weighted medians and percentiles: weighted_median(vector, w = weight) and weighted_quantile(vector, w = weight, probs = c(0.25, 0.50, 0.75)).
When using data that is assumed to be continuous but in practice is "bunched" at discrete points -- like reported hourly wages -- it can be helpful to smooth the estimated percentiles. One technique is to take a weighted average of nearby percentiles. For example, consider using the epidatatools package averaged_median(vector, w = weight) and averaged_quantile(vector, w = weight, probs = c(0.25, 0.50, 0.75)).
npx claudepluginhub economic/epi-skills --plugin r-econ-dataSearches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.