Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →brycewang-stanford/R-optimizer
R语言实证分析优化Skill。优化R代码效率、处理大规模面板数据、加速回归计算(并行化、向量化、向量化)。触发词:R语言优化/R加速/R性能优化/大规模数据处理/R optimization
Passed 6 of 22 test cases with the skill, and 17 of 22 without it.
0 fixed17 passed either way2 still failing3 broke
Tokens, turns and time describe resource use, not a dollar price.
The instructions your model reads when the skill loads.
本 Skill 针对经济学实证分析场景,优化 R 代码的执行效率和内存占用。涵盖:向量化操作、并行计算、大规模面板数据处理、回归加速。让原本需要数小时的回归在几分钟内完成。
实证分析的瓶颈往往不是算法,而是 I/O 和循环。优化顺序:
诊断慢点 → 向量化优化 → 并行化加速 → 内存优化 → 验证结果一致性
使用 profvis 定位瓶颈:
# 安装并使用 profvis
install.packages("profvis")
library(profvis)
profvis({
# 放入需要诊断的代码
df <- readstata13::read.dta13("data/raw/cgss2021.dta")
result <- lm(income ~ education + age + urban, data = df)
test cases passed, vs 17 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.