Learn R With Ai banner
htlin222 htlin222

Learn R With Ai

AI community

Description

Learn R statistics for clinical research with AI assistance—interactive Quarto tutorial from zero programming knowledge to publication-ready biostatistics analysis.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

R 語言統計工具入門:用 AI 學會做臨床研究統計

[![GitHub stars](https://img.shields.io/github/stars/htlin222/learn-r-with-ai?style=social)](https://github.com/htlin222/learn-r-with-ai/stargazers) [![Last Commit](https://img.shields.io/github/last-commit/htlin222/learn-r-with-ai)](https://github.com/htlin222/learn-r-with-ai/commits/main) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

一個以 Quarto 建置的開源教學書籍,教你如何善用 AI 輔助學習 R 語言,完成臨床研究統計分析 -- 從零開始,不需要程式背景。

在線閱讀

資源 連結
書籍網址 htlin222.github.io/learn-r-with-ai
GitHub 倉庫 github.com/htlin222/learn-r-with-ai
下載程式碼 點此下載 ZIP

課程目標

今天結束時,你將能夠:

  • 把問題描述清楚,讓 AI 幫你寫程式
  • 看懂 AI 給的程式碼大概在做什麼
  • 當程式出錯,知道怎麼問 AI 修正
  • 產出可以放進論文的表格和圖表
  • 有一個可以重複使用的分析範本

這堂課的玩法

  1. 我給你一個「任務」
  2. 你把任務描述貼給 AI(ChatGPT / Claude)
  3. AI 給你程式碼
  4. 你貼到 Positron / Posit.cloud 執行
  5. 我們一起看結果、理解發生了什麼

**記住:你的工作是「問對問題」,不是「寫對程式」。**

項目結構

learn-r-with-ai/
├── _quarto.yml                          # Quarto 書籍配置
├── _common.R                            # 全域 R 設定(字型、主題、knitr)
├── install.r                            # 一鍵安裝所有套件
│
├── index.qmd                            # 前言
├── part1.qmd                            # 第一部分:快速入門(任務 1-5)
├── part2.qmd                            # 第二部分:讀取你的資料(任務 6-8)
├── part3.qmd                            # 第三部分:產出你的 Table 1(任務 9-14)
├── part4.qmd                            # 第四部分:畫出論文等級的圖(任務 15-19)
├── part5.qmd                            # 第五部分:統計檢定(任務 20-24)
├── part6.qmd                            # 第六部分:整合與收尾(任務 25-30)
├── appendix.qmd                         # 附錄:常見技術問題與解決方案
│
├── patient_data.csv                     # 主要教學資料(100 筆病人)
├── patient_data_for_survival.csv        # 存活分析資料(100 筆)
├── patient_data_meta.csv                # 統合分析資料(8 篇研究)
│
├── boxplot_los.R                        # 範例:盒狀圖腳本
├── mult