返回顶部
o

openclaw-r-stats

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
218
下载量
0
收藏
概述
安装方式
版本历史

openclaw-r-stats

# OpenClaw R Stats ## When to Use User asks for any statistical analysis, hypothesis testing, group comparison, prediction, association, survival analysis, meta-analysis, causal inference, power/sample size, or mentions R statistical packages. ## What This Skill Does NOT Do - Claim causality from observational data (use "associated with") - Run large exploratory fishing without clear user intent - Silently ignore assumption violations - Report only p-values (always include effect sizes and CIs) ## Pre-Flight (Mandatory) 1. Confirm dataset exists and is readable 2. Run schema inspection: `bash {baseDir}/scripts/run-rstats.sh schema --data <path>` 3. Report: rows, columns, types, missing values 4. If missing > 5%, warn. If n < 30, warn small sample. ## Environment Setup First time or errors: `bash {baseDir}/scripts/run-rstats.sh doctor` Install by profile (only when needed): | Profile | Script | Methods | |---------|--------|---------| | Core | `install-core.R` | t-test, regression, ANOVA, chi-sq | | Survival | `install-survival.R` | KM, Cox, competing risks, RMST | | Missing | `install-missing.R` | MICE, MCAR test | | Mixed | `install-mixed.R` | LMM, GLMM, GEE, ICC | | Bayes | `install-bayes.R` | brms, Bayes factors | | Causal | `install-causal.R` | PSM, IPTW, IV, DiD, RDD, TMLE | | Meta | `install-meta.R` | meta-analysis, NMA | | SEM | `install-sem.R` | SEM, CFA, lavaan | | Diagnostic | `install-diagnostic.R` | ROC, kappa, alpha | | Advanced | `install-advanced.R` | GAM, quantile, zero-inflated | | Power | `install-power.R` | power/sample size | ## Workflow 1. Determine analysis type (see references/METHOD_TABLE.md) 2. Inspect dataset schema 3. Build JSON spec: ```json { "dataset_path": "<path>", "analysis_type": "<type>", "outcome": "<column>", "predictors": ["<col1>"], "hypothesis": "<plain language>", "alpha": 0.05, "seed": 42, "output_dir": "<path>" } ``` 4. Save as .json, run: `bash {baseDir}/scripts/run-rstats.sh analyze --spec <path>` 5. Read summary.json + report.md 6. Present: Summary → Statistics → Interpretation → Plots → Assumptions → Caveats ## Analysis Selection For the complete 82-method table with user intent mapping, see **references/METHOD_TABLE.md**. Quick lookup — most common: | Intent | analysis_type | |--------|--------------| | Compare 2 groups | `ttest` or `wilcoxon` | | Compare 3+ groups | `anova` or `kruskal` | | Categorical association | `chisq` or `fisher` | | Predict continuous | `linear_regression` | | Predict binary | `logistic_regression` | | Survival curves | `kaplan_meier` | | Survival regression | `cox_regression` | | Meta-analysis | `meta_analysis` | | Causal effect | `propensity_match` or `did` | | Power/sample size | `power_analysis` | ## Automatic Method Switching - Non-normal + n < 30 → `wilcoxon` over `ttest` - Unequal variance → Welch t-test (`equal_var: false`) - Expected cells < 5 → `fisher` over `chisq` - Overdispersion in Poisson → suggest negative binomial - Heteroscedastic residuals → robust SE warning ## Reporting Rules (Non-Negotiable) Every analysis MUST include: - Sample size (n) and missing data handling - Method name and rationale - Point estimates with confidence intervals - Effect sizes (Cohen's d, η², R², OR, HR, etc.) - Assumption check results - Limitations Language: "associated with" / "evidence suggests" — NEVER "proves" / "causes" ## Spec Field Reference See **references/SPEC_REFERENCE.md** for required/optional fields per analysis_type.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 r-stats-1775995999 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 r-stats-1775995999 技能

通过命令行安装

skillhub install r-stats-1775995999

下载 Zip 包

⬇ 下载 openclaw-r-stats v1.1.0

文件大小: 152.38 KB | 发布时间: 2026-4-13 11:43

v1.1.0 最新 2026-4-13 11:43
No user-facing changes. Version bump only.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部