askLLMLearn R with Rj跟著 Rj 學 R

Learn R, right next to your own data. 自己的資料學 R。

jamovi is R underneath. This quick tour shows you how to see it, write it, and learn R — using the data you have open in jamovi, with askLLM as your learning guide. jamovi 的底層就是 R。這份快速導覽頁教你怎麼看、怎麼寫、怎麼學 R:用你在 jamovi 開啟的資料,讓 askLLM 當你的學習嚮導。

askLLM

Two helpers, two jobs兩個助手、兩種工作

Under Analyses ▸ askLLM you get two analyses. Pick the one that matches what you want. Analyses ▸ askLLM 底下有兩個分析,挑你需要的那個。

jamovi Module Guider

Which analysis should I run? Recommends the right jamovi analysis and the exact menu path, grounded in the modules you actually have installed. 我該跑哪個分析?推薦合適的 jamovi 分析與精確選單路徑,根據你實際安裝的模組。

R code tutor

Give me the R code. Writes R that works on your dataset for you to paste into the Rj Editor and run yourself — the tool teaches, you execute. 給我 R 程式碼。針對你的資料寫 R,貼進 Rj Editor 就能跑——工具教,你來執行。

01

What do you want to do?你想做什麼?

Tap one to highlight the matching path. 點一個就會標出對應的路徑。

02

Pick a path挑一條路

See the R behind an analysis看分析背後的 R

Zero typing. jamovi shows the exact R it ran for any analysis. 不用打字。任何分析,jamovi 都會顯示它實際跑過的 R。

Syntax ModeBuilt in
  1. Run any analysis (e.g. ANOVA).跑任一分析(例如 ANOVA)。
  2. Top-right menu → Syntax mode.右上 選單 → Syntax mode
  3. Each result now shows its jmv:: R call — copy it into Rj. 每個結果現在都會顯示對應的 jmv:: R 呼叫——複製到 Rj 就好。

This is the safest way to learn: the code is exactly what jamovi ran, so it can't be wrong. 這是最安全的學法:程式碼就是 jamovi 跑的那份,不會錯。

Run your own R in jamovi在 jamovi 裡跑你的 R

The Rj Editor runs R against your open dataset — no separate R install needed. Rj Editor 用你開著的資料跑 R——不必另外裝 R。

Rj EditorFree module
Open開啟
Analyses ▸ R ▸ Rj ▸ Rj Editor
Your data你的資料
data
Run執行
the ▶ / run button▶ / 執行鍵
# the open dataset is a data.frame called `data`
model <- aov(len ~ dose, data = data)
summary(model)
Rj Editor guideRj Editor 說明

Rj is a module for the desktop version of jamovi (not jamovi Cloud). It uses the R packages bundled with Rj (tidyverse, readr, haven, and more); "Rj Editor +" can write results back as columns. Rj 是桌面版 jamovi 的模組(jamovi Cloud 沒有)。它用 Rj 隨附的 R 套件(tidyverse、readr、haven 等);「Rj Editor +」可把結果存回成欄位。

Learn R from scratch從頭學 R

Beginner-friendly, community-standard references. 適合初學者的社群標準教材。

Reference
PsyTeachR
course-based, psychology-focused課程式、以心理學為主
R for Data Science
the modern intro現代入門 · CC BY-NC-ND
An Introduction to R
official manual官方手冊
Posit cheatsheets
one-page summaries一頁式速查 · CC BY
Start with R for Data Science從 R for Data Science 開始

Also: PsyTeachR · An Introduction to R · Posit cheatsheets 另有:PsyTeachR · An Introduction to R · Posit cheatsheets

Write R with jamovi's functions用 jamovi 自家函式寫 R

The jmv package reproduces jamovi analyses in R, one function per analysis. jmv 套件在 R 裡重現 jamovi 分析,一個分析一個函式。

jmv package
# same as Analyses ▸ ANOVA ▸ One-Way ANOVA
jmv::anovaOneW(data = data, deps = "len",
               group = "dose", phMethod = "tukey")
Combining jamovi and R結合 jamovi 與 R

Tip: run the analysis in jamovi first, switch on Syntax Mode, and copy the jmv:: call it generated. 訣竅:先在 jamovi 跑分析、開啟 Syntax Mode,再複製產生的 jmv:: 呼叫。

What askLLM sendsaskLLM 送出什麼

The R code tutor sends only summary statistics of the variables you pick, plus your question and the names of the R packages bundled with your Rj module — never the raw data rows, never the data itself. It never runs the R for you: you paste it into Rj and run it yourself. With a local model (Ollama) nothing leaves your machine at all. R code tutor 只送出你所選變數的摘要統計量、你的問題,以及 Rj 隨附套件的名稱—— 絕不送原始資料列、絕不送資料本身。它也絕不替你執行 R:你貼進 Rj 自己執行。搭配本機模型(Ollama),完全零外送。