SPEA V706 — Statistics for Research in Public Affairs
Learning the tools of a social scientist is part of how you learn to think like a social scientist.
Tools can raise productivity and reduce drudgery. But that is only part of the story.
They shape the way we think and communicate, the things we measure and notice, and the kinds of questions we decide to ask.
Downsides too. Sometimes tools make us lazy or sloppy, blind to key facts or problems.
Not an exhaustive list and not quite an endorsement, really. (Although I do like these things.)
Not really a course in how to use them; although I expect you to be very good with these things by the end of the semester.
| Tool | Job |
|---|---|
| R | all purpose data management and analysis; statistical computing. |
| RStudio / VS Code | Integrated development environments for R and other languages. |
| LaTeX and Markdown | Plain-text ways to write papers and documents. |
| Overleaf | Google docs for LaTeX. Works in your browser. |
| Git and GitHub | Version control and cloud based storage for your code and plaintext files. |
| Claude Code, Codex | Agentic AI tools. |
| The command line | Direct your computer using text based commands. |
| Quartz | IU’s research computing cluster. |
One application window that manages a whole bunch of things you use while writing code.
text editor for your scripts, often with with syntax highlighting that makes it easier to read and spot errors.
console where the code runs
view of the environment: objects, files, plots, help pages
many other features
A janky programming language for writing and typesetting documents.
You write plain text and a compiler produces a PDF.
Totally absurd and rickety.
And yet…many advantages and you grow to like it a bit.
Makes math writing easy:$\hat{\beta} = (X'X)^{-1}X'y$
Bibliographies and citations are super easy to manage.
**bold**, # Heading, - bulletanalysis.R
analysis_final.R
analysis_final_kosali.R
analysis_final_kosali_cw.R
analysis_final_kosali_cw_ks_final.R
analysis_submission_kosali_cw_ks_final_cw.R
analysis_please_god_let_this_be_the_one.R
A formal version control system developed by Linus Torvalds – the same guy who created Linux. (So…it’s good, right?)
GitHub is a website that hosts git repositories.
This is how software developers manage their code.
And now us too.
A chatbot answers a question and hands you text to paste somewhere
An agentic tool has access to your project: it reads your files, edits them, runs code, and reads the errors
Claude Code and Codex run in a terminal or inside your IDE
rm does not use a trash can. Look twice before you press return.