All materials

The same material as the module views, gathered into one continuous view. Only two modules are authored pilots; planned modules retain their existing curriculum descriptions.

Section numbers identify the course and module: 2.2 corresponds to Course 2, Module 2.

Course map

1 · Data Preparation in Social Science

1.1 · First Steps in R

Data preparation › Module 1

Course 1, Module 1 · Open module view

Course 1 · About two hours of study · No prior R required

NotePilot lesson

This lesson uses 12 fictional classroom records. It requires R and an editor, but no extra packages, accounts, or data downloads. Nothing in these records supports a claim about real learners.

The question

How can we describe study time and quiz scores in a small class? Today you will run a saved script, inspect a table, and explain one summary. You do not need to memorize the commands. The aim is to know what each line asks R to do and how to check its result.

By the end, you should be able to:

  • Run selected lines from a saved script and distinguish a calculation from assignment.
  • Identify what a row and a column represent, then calculate and explain a mean.
  • Change one input and check what changed and what stayed the same.

Prepare and open a script

Before class, install R and RStudio Desktop. An existing Positron or VS Code setup is also suitable. We demonstrate RStudio to keep the first module consistent. An optional coding assistant is unnecessary for this lesson.

Download the complete starter script. Save it in a folder called r4ss-course and open it in your editor. The script constructs its own small dataset, so its location does not affect whether it runs.

In RStudio, the source editor holds the script you save. The console receives commands and displays results. Put the cursor on a line, then press Ctrl+Enter on Windows or Cmd+Enter on macOS. Run from the top in order. The text beginning with # is a comment for the reader.

A leading > is the console prompt; do not type it into your script. If the console shows +, R may be waiting for a closing parenthesis or quotation mark. Press Esc, check the line, and run the complete expression again. Save the script with Ctrl+S or Cmd+S.

TipIf setup fails

Check whether R itself opens, then whether your editor can find it. Ask for help with the exact error message. While troubleshooting, use the rendered outputs below to make predictions and complete the interpretation questions with a partner.

Predict, then run

Read the next three lines before running them. <- stores a value under a name. Writing that name asks R to display its value. Adding one calculates a result.

study_hours <- 3
study_hours
[1] 3
study_hours + 1
[1] 4

The result of the addition is 4. The object still stores 3 because the addition did not assign a replacement value. You can check by running study_hours again.

Hands-on, five minutes: change the assigned value to 5, run all three lines again, and explain the two displayed results to a partner. Then restore 3 so the rest of the lesson matches this page.

Inspect a small table

A dataset is often organized as a table. Here, learner_id identifies a person, study_hours records reported study time in hours, and quiz_score records a score from 0 to 100. These names are case-sensitive. The three columns describe different properties of the same people.

Run this block once. c() collects several values, and data.frame() arranges equal-length columns into a table. You can reuse this supplied block without learning every detail today.

# Fictional classroom records, created solely for these lessons.
classroom <- data.frame(
  learner_id = 1:12,
  study_hours = c(1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7),
  quiz_score = c(48, 55, 51, 62, 58, 68, 63, 74, 70, 81, 76, 86)
)

Now inspect the beginning and count the rows:

head(classroom, 3)
  learner_id study_hours quiz_score
1          1           1         48
2          2           2         55
3          3           2         51
nrow(classroom)
[1] 12

head(classroom, 3) displays the first three rows. It does not remove the remaining records. nrow() counts all 12 rows. The row numbers printed at the left help display the table; learner_id is our explicit identifier column.

Hands-on, ten minutes: display the first five rows instead. Explain why this changes the display but not the result of nrow(classroom). Find the score of learner 3 by reading the printed table. Do not change the data yet.

Summarize and explain

The $ symbol selects a named column from a table. classroom$quiz_score means the quiz_score column in classroom. The function mean() takes numeric values and calculates their arithmetic mean.

mean(classroom$study_hours)
[1] 4
mean(classroom$quiz_score)
[1] 66

The average reported study time is 4 hours, and the average score is 66 points. Neither statement says that everyone has that value. These are descriptions of these 12 fictional records only. There are no missing values in this example; a later module explains how missing values affect summaries.

Interpret a class average

The classroom table contains 12 fictional learners. Each score is measured in points from 0 to 100. Running this code gives:

mean(classroom$quiz_score)
# [1] 66

Which statements can we make about this result?

Select all that apply.

Discuss: what information disappears when we replace the 12 scores with just one mean? Compare the smallest and largest displayed scores before answering.

Modify one thing

extra_hour <- study_hours + 1
extra_hour
[1] 4
study_hours
[1] 3

extra_hour stores a new value of 4, while study_hours remains 3. An object and a column can have related names, but study_hours and classroom$study_hours are different expressions. Changing the single object does not change the table column.

Find the problem in the code

The table has columns named learner_id, study_hours, and quiz_score. You want the mean quiz score, but this line returns NA with a warning:

mean(classroom$Quiz_score)

What should you check first?

Choose one answer.

If you see object 'classroom' not found, run the data-creation block first. If a function returns NA with a warning, read that warning and check the input; repeated clicks rarely fix a misspelled column. Use names(classroom) to inspect the actual names.

Independent task

Allow 15 minutes. Save a copy of the starter script with your name in the filename.

  1. Create an object planned_hours with value 6. Calculate planned_hours + 2 without replacing it. Display planned_hours again.
  2. Display the first four rows of classroom and count all its rows.
  3. Calculate the mean quiz score. Write a comment stating its value, units, and which observations it describes.
  4. Tell a partner why adding one to planned_hours would not change the class mean.
Hints

Reuse the assignment pattern, head(), nrow(), and mean() above. A comment begins with #. Check the object name and column capitalization before looking at the solution.

Worked solution
planned_hours <- 6
planned_hours + 2
planned_hours
head(classroom, 4)
nrow(classroom)
mean(classroom$quiz_score)
# The mean quiz score is 66 points across 12 fictional learners.

The first calculation displays 8; planned_hours still displays 6. There are 12 rows. The separate object does not alter a column in classroom.

Recap and exit question

A script stores instructions; the console runs them and shows results. Assignment stores a value, a table organizes observations, and a summary describes a set of values. Save your script, restart R, and run it from the top to check that it works without objects left over from earlier attempts.

Exit question: explain the difference between study_hours, classroom$study_hours, and mean(classroom$study_hours) in your own words.

Before moving to the next module, write two sentences describing what you can infer from the mean and what you cannot. The textbook reading is Introduction to R; its wider discussion of data structures is optional at this stage.

Back to the course map · Teaching notes

1.2 · Importing and Inspecting Data

Data preparation › Module 2

Course 1, Module 2 · Open module view

Course 1 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Identify observations, variables, types, and import settings.

Prerequisites

Course 1, Module 1

Practical task

Import a CSV and compare its rows and column types with the source.

1.3 · Selecting, Filtering, and Sorting Data

Data preparation › Module 3

Course 1, Module 3 · Open module view

Course 1 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Distinguish selecting columns, filtering rows, and ordering observations.

Prerequisites

Course 1, Module 2

Practical task

Select variables, filter observations, and sort the resulting table.

1.4 · Creating Variables with Pipes

Data preparation › Module 4

Course 1, Module 4 · Open module view

Course 1 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Read a pipeline and construct variables with explicit definitions.

Prerequisites

Course 1, Module 3

Practical task

Build a short pipeline that creates a variable and checks its values.

1.5 · Recoding and Handling Missing Values

Data preparation › Module 5

Course 1, Module 5 · Open module view

Course 1 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Recode values and distinguish missing-value definitions.

Prerequisites

Course 1, Module 4

Practical task

Recode a category, mark missing codes, and compare valid counts.

1.6 · Grouping Data, Summaries, and Percentages

Data preparation › Module 6

Course 1, Module 6 · Open module view

Course 1 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Choose grouped summaries and state percentage denominators.

Prerequisites

Course 1, Module 5

Practical task

Produce group counts, means, and percentages with explicit denominators.

1.7 · Plotting Data with ggplot2

Data preparation › Module 7

Course 1, Module 7 · Open module view

Course 1 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Match ggplot2 plots to distributions and group comparisons.

Prerequisites

Course 1, Module 6

Practical task

Plot a distribution and group comparison, then inspect unusual values.

1.8 · Joining Datasets

Data preparation › Module 8

Course 1, Module 8 · Open module view

Course 1 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Identify join keys and anticipate unmatched or repeated records.

Prerequisites

Course 1, Module 7

Practical task

Join two tables and audit unmatched keys and row counts.

1.9 · Reshaping Long and Wide Data

Data preparation › Module 9

Course 1, Module 9 · Open module view

Course 1 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Recognize how reshaping changes table structure and observation keys.

Prerequisites

Course 1, Module 8

Practical task

Reshape a table between long and wide forms and verify identifiers.

1.10 · Cleaning Text and Working with Dates

Data preparation › Module 10

Course 1, Module 10 · Open module view

Course 1 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Clean strings and parse dates while checking failed conversions.

Prerequisites

Course 1, Module 9

Practical task

Standardize text labels and convert a date field with checks.

1.11 · An Integrated Data Preparation Workflow

Data preparation › Module 11

Course 1, Module 11 · Open module view

Course 1 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Locate and repair errors across a data-preparation workflow.

Prerequisites

Course 1, Module 10

Practical task

Audit and repair a workflow combining cleaning, joins, and summaries.

1.12 · Data Preparation Project

Data preparation › Module 12

Course 1, Module 12 · Open module view

Course 1 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Turn raw records into an analysis-ready dataset with documented checks.

Prerequisites

Course 1, Module 11

Practical task

Prepare a dataset and explain the main cleaning and transformation choices.

2 · Regression in Social Science

2.1 · Foundational Knowledge

Regression › Module 1

Course 2, Module 1 · Open module view

Course 2 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Connect research questions, variables, statistical summaries, and uncertainty.

Prerequisites

Course 1, Module 12

Practical task

Identify an outcome, predictors, and the uncertainty in a proposed comparison.

2.2 · Linear Regression

Regression › Module 2

Course 2, Module 2 · Open module view

Course 2 · About two hours of study

NotePilot lesson

Prerequisites: Course 1 skills in running scripts, inspecting tables, calculating means, and reading a scatterplot. Previous regression training is unnecessary. This is Course 2, Module 2; it is not the next module after Course 1, Module 1.

The question

How do study hours and quiz scores vary together in a small class? We will fit a straight line, use it to make two predictions, and explain the limits of the result. We are learning how to read a model, not trying to prove that additional studying causes a particular improvement.

By the end, you should be able to:

  • Identify the outcome and predictor in a formula and fit a simple model.
  • Interpret a slope and a prediction in their original units.
  • Modify the analysis sample and state why a fitted association is not sufficient evidence of causation.

Download the complete local starter script. It includes the same 12 fictional classroom records as Course 1, Module 1, so it runs from any folder without data downloads or additional packages. Run it from the top in a fresh R session. The plot block runs when you use R interactively in an editor.

Start with the observations

Our outcome is quiz_score, measured in points from 0 to 100. Our predictor is study_hours, measured in hours. A predictor is an input to the model; the word does not establish that it causes the outcome. One row is one fictional learner.

head(classroom, 4)
  learner_id study_hours quiz_score
1          1           1         48
2          2           2         55
3          3           2         51
4          4           3         62

Before fitting anything, predict the direction of the relationship. Then run this plot code in your editor:

plot(classroom$study_hours, classroom$quiz_score)

Pair activity, ten minutes: describe the direction, identify two learners with the same study hours but different scores, and explain why a single line will not pass through every point. At four hours the two scores are 68 and 63, already showing variation that study time alone does not describe.

Fit and read a straight line

A simple linear regression describes the outcome with an intercept and a slope. The intercept sets the line’s level at zero hours. The slope describes how much the predicted score differs when study time differs by one hour. R chooses the line that minimizes the sum of squared vertical differences between observed and fitted scores.

score_model <- lm(quiz_score ~ study_hours, data = classroom)
coef(score_model)
(Intercept) study_hours 
  40.736842    6.315789 

Read the formula from left to right: quiz_score is the outcome; ~ separates it from the predictor; study_hours is the predictor. data = classroom tells R which table holds those columns. <- saves the fitted model under the name score_model. coef() displays its coefficients.

The fitted relationship is approximately:

Predicted score = 40.74 + 6.32 × study hours.

One more study hour is associated with about 6.32 more predicted score points in these constructed records. The intercept, about 40.74, is the fitted value at zero hours. No observation has zero study hours, so we should not describe it as an observed zero-hour score.

Interpret the slope

A model fitted to 12 fictional learners predicts quiz scores (in points from 0 to 100) from study time (in hours). Its fitted line is:

Predicted score = 40.74 + 6.32 × study hours

Which statement correctly interprets the slope of 6.32?

Choose one answer.

Guided practice, ten minutes: point to the outcome, predictor, and dataset in the formula. Explain which part you would change to use a different table and which part you would change to model a different outcome. Do not add new variables yet.

Inspect the fitted relationship

Twelve points show a positive relationship between study hours and quiz scores. A straight fitted line summarizes their pattern; observations lie above and below it.
Figure 1: Observed scores and the fitted line in the fictional classroom.

The points are observed scores; the line shows fitted scores. A learner can lie above or below it. The vertical difference between an observed and fitted score is called a residual. Residuals remind us that a model is a summary rather than a complete description of every case.

Discuss: if all points were exactly on this line, would that alone prove a causal effect? Explain why a perfect description of these records would still say nothing about how they were generated or what an intervention would do.

Predict, then check

Before running the next code, predict which fitted score is larger and by how much. newdata supplies the predictor values for which we want predictions; its column name must match the model’s predictor.

predict(score_model, newdata = data.frame(study_hours = c(3, 4)))
       1        2 
59.68421 66.00000 

The predicted scores are approximately 59.68 at three hours and 66 at four hours. The difference is about 6.32 points, matching the slope. The original scores at four hours were 68 and 63, not exactly 66.

Interpret a prediction

Using the fitted model, we predict the score for a study time of four hours:

predict(score_model,
        newdata = data.frame(study_hours = 4))
# Predicted score: 66 points

The two learners who actually studied for four hours scored 68 and 63 points.

What does the predicted value of 66 represent?

Choose one answer.

Hands-on, ten minutes: predict scores at two and five hours. Explain the difference between a fitted prediction and an observed score. Then consider a prediction at 20 hours: it lies far outside the observed range of one to seven hours, so extending this straight line there would require an unsupported assumption.

What can we conclude?

A fitted line summarizes an association conditional on the variables and records we gave it. It does not establish why that pattern exists. In a real study, earlier preparation might influence both study time and quiz results. Students could also choose study time in response to their expected difficulty.

Here, the data are explicitly fictional. A small standard error or a low p-value would not turn them into evidence about actual students. Our aim is to practice code and interpretation. A later causal-inference module asks what additional design and assumptions a causal question requires.

Evaluate a causal claim

The records for these 12 learners were constructed for teaching. The fitted regression has a positive slope. Someone concludes: “Making students study longer will improve their scores.”

Which reasons explain why this regression does not establish that causal claim?

Select all that apply.

Check which question the model answers

The original model predicts quiz scores from study hours. Compare these two formulas:

# Original model
lm(quiz_score ~ study_hours, data = classroom)

# Reversed formula
lm(study_hours ~ quiz_score, data = classroom)

What does the model with the reversed formula predict?

Choose one answer.

If you see object 'quiz_score' not found, check names(classroom) and the data argument. If prediction reports that study_hours is missing, check the column name in newdata. If the script works only after other code has run, restart R and execute the downloaded script from its first line.

Independent task

Allow 20 minutes. Work with the supplied records without changing their values.

  1. Predict the score at five study hours and write its units.
  2. Fit the same formula using only learners with study_hours <= 5. Before running it, predict whether the slope must stay identical.
  3. Compare the two slopes. Explain why changing the records can change a fitted relationship.
  4. Write two sentences: one describing the full-sample association, and one stating a limitation. Avoid saying that studying another hour will necessarily cause a 6.32-point gain.
Hints

Use predict(score_model, newdata = data.frame(study_hours = 5)). A filtered base R table can be written as classroom[classroom$study_hours <= 5, ]; the blank after the comma retains every column. Keep the full-sample model under its original name.

Worked solution
predict(score_model, newdata = data.frame(study_hours = 5))
       1 
72.31579 
score_model_small <- lm(
  quiz_score ~ study_hours,
  data = classroom[classroom$study_hours <= 5, ]
)
coef(score_model_small)
(Intercept) study_hours 
  41.321429    6.107143 

The prediction is about 72.32 points. The restricted slope is about 6.11 points per hour, rather than 6.32. Changing the sample need not preserve the fitted coefficients. Neither fit is an empirical finding about a real population.

A suitable interpretation is: “In the fictional classroom records, an additional reported study hour is associated with about 6.32 more predicted score points. These constructed observations do not establish a causal effect or describe a real population.”

Recap and exit question

The formula specifies a question, the fitted line summarizes a relationship, and a prediction gives a value on that line. Always retain the units, inspect the observations, and distinguish a description from a causal claim.

Exit question: a classmate says, “R predicts 66 points at four hours, so giving everyone four hours of study guarantees 66.” Explain two different problems with that sentence.

For homework, save your modified script and a short interpretation. A dedicated regression chapter in the textbook is planned; this pilot contains the explanations needed for its own activities.

Back to the course map · Teaching notes

2.3 · Categorical Predictors and Interactions

Regression › Module 3

Course 2, Module 3 · Open module view

Course 2 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Interpret reference categories and relationships conditional on another variable.

Prerequisites

Course 2, Module 2

Practical task

Compare predicted outcomes across categories and an interaction.

2.4 · Model Specification and Diagnostics

Regression › Module 4

Course 2, Module 4 · Open module view

Course 2 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Assess functional form, residual patterns, and influential observations.

Prerequisites

Course 2, Module 2

Practical task

Inspect model diagnostics and explain a justified specification change.

2.5 · Logit and Probit Regression

Regression › Module 5

Course 2, Module 5 · Open module view

Course 2 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Relate binary outcomes to logit/probit models and predicted probabilities.

Prerequisites

Course 2, Module 2

Practical task

Fit binary-outcome models and compare predicted probabilities.

2.6 · Predicted Probabilities and Marginal Effects

Regression › Module 6

Course 2, Module 6 · Open module view

Course 2 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Translate nonlinear model results into probabilities and marginal effects.

Prerequisites

Course 2, Module 5

Practical task

Calculate predictions or marginal effects for substantively meaningful profiles.

2.7 · Ordinal and Multinomial Logit Models

Regression › Module 7

Course 2, Module 7 · Open module view

Course 2 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Distinguish ordered and unordered categorical outcomes and model assumptions.

Prerequisites

Course 2, Module 5

Practical task

Choose an ordinal or multinomial model and interpret category probabilities.

2.8 · Conditional Logit and Choice Data

Regression › Module 8

Course 2, Module 8 · Open module view

Course 2 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Represent choice sets and interpret alternative-specific predictors.

Prerequisites

Course 2, Module 5

Practical task

Arrange choice data and interpret a conditional-logit comparison.

2.9 · Fixed-effects Models

Regression › Module 9

Course 2, Module 9 · Open module view

Course 2 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Explain within-unit comparisons and unit/time fixed effects in panel data.

Prerequisites

Course 2, Module 2, Course 1, Module 9

Practical task

Compare pooled and fixed-effects estimates and state the identifying variation.

2.10 · Multilevel Models

Regression › Module 10

Course 2, Module 10 · Open module view

Course 2 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Distinguish within-group and between-group variation in hierarchical data.

Prerequisites

Course 2, Module 2

Practical task

Fit or inspect a multilevel model and interpret group variation.

2.11 · Regression Presentation

Regression › Module 11

Course 2, Module 11 · Open module view

Course 2 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Present regression estimates and predictions with clear substantive interpretation.

Prerequisites

Course 2, Module 2, Course 2, Module 5

Practical task

Prepare a regression table and plot with units, uncertainty, and a conclusion.

2.12 · Regression Project

Regression › Module 12

Course 2, Module 12 · Open module view

Course 2 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Choose and assess a regression model for a bounded research question.

Prerequisites

Course 2, Module 11

Practical task

Complete a model-based analysis with diagnostics and substantive interpretation.

3 · Computational Social Science

3.1 · Causal Inference

Computational social science › Module 1

Course 3, Module 1 · Open module view

Course 3 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Distinguish causal estimands, identification assumptions, and regression associations.

Prerequisites

Course 2, Module 2

Practical task

Specify a causal question and explain the comparison and assumptions it requires.

3.2 · Simulation and Monte Carlo Methods

Computational social science › Module 2

Course 3, Module 2 · Open module view

Course 3 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Use repeated simulation to examine sampling variation and estimator behavior.

Prerequisites

Course 2, Module 2, Course 1, Module 12

Practical task

Run a Monte Carlo experiment and explain how results change with sample size.

3.3 · Agent-Based Modeling

Computational social science › Module 3

Course 3, Module 3 · Open module view

Course 3 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Connect agent rules and interactions to emergent social patterns.

Prerequisites

Course 3, Module 2

Practical task

Modify an agent rule and compare simulated aggregate patterns.

3.4 · Bayesian Modeling

Computational social science › Module 4

Course 3, Module 4 · Open module view

Course 3 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Connect priors, likelihood, posterior computation, and model checking.

Prerequisites

Course 3, Module 2, Course 2, Module 2

Practical task

Specify a simple Bayesian model and inspect posterior summaries and checks.

3.5 · Machine Learning

Computational social science › Module 5

Course 3, Module 5 · Open module view

Course 3 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Distinguish model training, tuning, and evaluation on held-out data.

Prerequisites

Course 2, Module 2, Course 1, Module 12

Practical task

Compare predictive models using a consistent held-out evaluation.

3.6 · Double Machine Learning

Computational social science › Module 6

Course 3, Module 6 · Open module view

Course 3 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Explain causal-effect estimation using nuisance models, orthogonal scores, and cross-fitting.

Prerequisites

Course 3, Module 1, Course 3, Module 5

Practical task

Identify nuisance predictions and cross-fitting steps in a causal-estimation workflow.

3.7 · SHAP Analysis

Computational social science › Module 7

Course 3, Module 7 · Open module view

Course 3 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Interpret feature contributions to predictions and distinguish explanations from causal effects.

Prerequisites

Course 3, Module 5

Practical task

Read local and global SHAP summaries and state an interpretive limitation.

3.8 · Text as Social Data

Computational social science › Module 8

Course 3, Module 8 · Open module view

Course 3 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Explain how preprocessing and representation affect text-based measurements.

Prerequisites

Course 1, Module 12

Practical task

Compare two text representations and discuss their implications for a research question.

3.9 · Images as Social Data

Computational social science › Module 9

Course 3, Module 9 · Open module view

Course 3 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Assess image-derived social measures and their validity and limitations.

Prerequisites

Course 3, Module 5

Practical task

Evaluate an image-derived measure against the social concept it is intended to capture.

3.10 · Spatial Analysis

Computational social science › Module 10

Course 3, Module 10 · Open module view

Course 3 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Connect coordinates, geographic units, spatial patterns, and social questions.

Prerequisites

Course 1, Module 12

Practical task

Map a social measure and discuss scale and spatial interpretation.

3.11 · Social Network Analysis

Computational social science › Module 11

Course 3, Module 11 · Open module view

Course 3 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Distinguish relations, node attributes, network structure, and network summaries.

Prerequisites

Course 1, Module 12

Practical task

Construct or inspect a network and interpret a structural summary.

3.12 · Computational Social Science Project

Computational social science › Module 12

Course 3, Module 12 · Open module view

Course 3 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Match a computational method and validation strategy to a social research question.

Prerequisites

Course 3, Module 1, Course 3, Module 5

Practical task

Complete a bounded computational analysis and discuss measurement and inferential limits.

4 · Programming for Social Science

4.1 · Functions and Reusable Code

Programming › Module 1

Course 4, Module 1 · Open module view

Course 4 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Write functions with clear inputs, outputs, and reusable responsibilities.

Prerequisites

Course 1, Module 12

Practical task

Turn repeated code into a function and check it on different inputs.

4.2 · Control Flow and Automation

Programming › Module 2

Course 4, Module 2 · Open module view

Course 4 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Use conditions and iteration to automate repeated research tasks.

Prerequisites

Course 4, Module 1

Practical task

Automate a repeated task and handle a failed input explicitly.

4.3 · Working with Word and PDF

Programming › Module 3

Course 4, Module 3 · Open module view

Course 4 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Distinguish document structure, extractable text, and scanned pages.

Prerequisites

Course 4, Module 1, Course 4, Module 2

Practical task

Extract text or tables from a document and check the result against the source.

4.4 · Image Analysis

Programming › Module 4

Course 4, Module 4 · Open module view

Course 4 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Work with image representations, processing, OCR, and extraction errors.

Prerequisites

Course 4, Module 1, Course 4, Module 2

Practical task

Inspect an image-processing or OCR workflow and verify its output.

4.5 · Interactive Visualizations

Programming › Module 5

Course 4, Module 5 · Open module view

Course 4 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Use interactive controls to explore and communicate plotted data.

Prerequisites

Course 1, Module 7, Course 4, Module 1

Practical task

Create or modify an interactive plot and assess its usability.

4.6 · Building Research Dashboards

Programming › Module 6

Course 4, Module 6 · Open module view

Course 4 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Organize related outputs into a coherent research dashboard.

Prerequisites

Course 4, Module 5

Practical task

Assemble a dashboard with a clear question, views, and navigation.

4.7 · Big Data

Programming › Module 7

Course 4, Module 7 · Open module view

Course 4 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Choose selective reading, deferred computation, and suitable data workflows.

Prerequisites

Course 4, Module 1, Course 4, Module 2

Practical task

Process a larger dataset while explaining memory and computation choices.

4.8 · Scientific Computing and Numerical Analysis

Programming › Module 8

Course 4, Module 8 · Open module view

Course 4 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Assess numerical approximation, optimization, precision, and convergence.

Prerequisites

Course 4, Module 1, Course 4, Module 2

Practical task

Compare numerical approximations or optimizers and inspect convergence and error.

4.9 · Rcpp and Compiled-Code Acceleration

Programming › Module 9

Course 4, Module 9 · Open module view

Course 4 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Distinguish algorithmic improvements from compiled-code acceleration.

Prerequisites

Course 4, Module 1

Practical task

Compare an R workflow with a demonstrated compiled implementation and verify results.

4.10 · LLM Integration

Programming › Module 10

Course 4, Module 10 · Open module view

Course 4 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Connect R workflows to language-model inputs, structured outputs, and validation.

Prerequisites

Course 4, Module 1, Course 4, Module 2

Practical task

Design an LLM-assisted task with explicit output checks and failure handling.

4.11 · Collaborating with Programmers

Programming › Module 11

Course 4, Module 11 · Open module view

Course 4 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Specify research requirements and review code, deliverables, and interfaces.

Prerequisites

Course 4, Module 1

Practical task

Write a task specification with inputs, expected outputs, and acceptance checks.

4.12 · Programming Project

Programming › Module 12

Course 4, Module 12 · Open module view

Course 4 · About two hours of study

NotePlanned: lesson not yet available

This page contains the existing curriculum description, not an authored lesson.

Learning goal

Integrate reusable code and computational tools into a research workflow.

Prerequisites

Course 4, Module 1, Course 4, Module 11

Practical task

Develop a small workflow with documented interfaces, outputs, and checks.