8. Week 8 - Developing the linear model

Written by Rob Davies, Samuel Finnerty, & Margriet Groen

Overview

This week we focus on three strands of learning:

  1. The linear model with multiple predictors

Last week you learned about regression and the linear model as a way of predicting one variable from knowledge of one or more other variables.

This week you will learn about multiple regression which involves the linear model you learned last week but this time with multiple predictors i.e., as a way of predicting one variable from knowledge of more than one variable.

Regression is really useful when we have more than one predictor which is why we will be covering multiple regression this week and in week 9. This week, we will also include a categorical variable (education level) as a predictor in a linear model.

We will do all this in the context of the Clearly Understood project on how easy or difficult people find it to understand written health information.

  1. Research project: Building your study on Gorilla

We will also continue the group project by focussing on building your study on Gorilla, and starting data collection

  1. Research project: How to write a report

We will make a start with writing the research report

The materials we have prepared to support your learning are arranged in four parts:

  • Lectures
  • Reading
  • Pre-lab activities
  • Lab activities

You can navigate to each in the side bar on the right

Lectures

Note

Please note that Rob may mention a different module code or different week during the lectures. I’ve reviewed the material and the content is entirely relevant to the current module.

Tip

In week 8, we aim to further develop skills in analysing and in visualising psychological data. We will do so in the context of the Clearly Understood project.

We will aim to answer the research question: What person attributes in adult readers predict success in understanding written health information?

Research questions like this can be examined using linear models.

When we do these analyses, we will need to adapt how we report the results:

  • we need to report information about the model we specify, identifying all predictors;
  • we will need to decide if the effects of one or more predictors are significant;
  • we will report the model fit statistics (F, R-squared) as well as coefficient estimates;
  • and we need to learn to write texts describing the impact of predictors.

Usually, in describing the impacts of predictors, we are required to communicate:

  • the direction of the effect – do values of the outcome variable increase or decrease given increasing values of the predictor?
  • the size of the effect – how much do values of the outcome variable increase or decrease given increasing values of the predictor?

This task of description is enabled by producing plots of the predictions we can make:

  • plots to show we expect the outcome to change, given different values of a predictor.
Tip

Before you go on to the activities in Section 4, watch the lectures:

The lecture for part A for this week is presented in four short parts. You can view video recordings of the lectures using Panopto, by clicking on the links shown following.

  1. Overview (18 minutes): What we are doing in Week 8 – Exploring the power of linear models, extending their application to use multiple variables to predict people.
  1. Using linear models to predict people (13 minutes): Coding, thinking about, and reporting linear models with multiple predictors.
  1. Critical evaluation (15 minutes): Critically evaluating the results of analyses involving linear models.
  1. Everything is some kind of linear model (13 minutes): Understanding just how general and powerful this method for understanding people can be.
Tip

The slides presented in the videos can be downloaded either as a web page. You can download the web page .html file and click on it to open it in any browser (e.g., Chrome, Edge or Safari). The slide images are high quality so the file is quite big and may take a few seconds to download.

The lectures have three main areas of focus

1. Working with the linear model with multiple predictors

We focus in-depth on how you code linear models, how you identify critical information in the results summaries, and how you report the results: the language and the style you can use in your reports.

Tip
  • A small change to lm() coding releases tremendous power and flexibility in how you use the analysis method.

2. Analyses are done in context so when we conduct analyses we must use contextual information

The power and flexibility of the linear model presents challenges. We must decide which predictor variables we specify in our model. This specification requires us to think about our theoretical assumptions and what they require us to include to make sense of the behaviours or the individual differences we observe when we do things like investigating what makes health information easy or difficult to understand.

3. Developing critical thinking

As we develop conceptual understanding and practical skills, we must learn to reflect critically on our analyses, and learn to critically evaluate the analyses we read about when we read research reports in the scientific literature.

Tip

Critical analysis can develop by considering

  • validity
  • measurement
  • generalizability

We are always working in the broader context of uncertainty:

  • uncertainty about the predictions we may make concerning outcomes of interest;
  • uncertainty given the possibility that predicted effects may vary between individuals or groups;
  • uncertainty given the influence of sources of randomness in how specific responses are produced.

B. Research project: Building your study on Gorilla

There is no lecture content for this part.

C. Research project: How to write a report

Lecture content for this part will be added as soon as possible.

Reading

Easy access to readings

All reading is accessible via the library. You can go to Moodle -> Library Resources -> Resource List or you can follow this link. Readings have one of the following tags:

  • Essential: We expect you to be familiar with these reading. You will be assessed on this.
  • Recommended: We highly recommend these readings. They often provide a different perspective, or explain things in a different way.
  • Optional: Further readings for those interested.

The reading list is divided into multiple sections:

  • Reading associated with statistics: this contains links to readings useful for the development of statistical concepts and skills. The main textbook Fundamental statistics for the behavioral sciences by Howell (Essential) lives here.
  • Reading associated with psychological research principles and design: this contains links to readings that provide a good basis for foundational knowledge around research design.
  • Reading associated with Open Science principles and practices: this contains links to key literature on the Open Science movement.
  • Week by week: these contain links to key reading for that week that are not listed on any of the more general lists above.

For week 8, the reading is:

  • Howell, D. C. (2017). Fundamental statistics for the behavioral sciences (9th ed.). Cengage Learning. Chapter 11. Essential

  • Key readings for the mini research project as outlined here and reading about measuring mind wandering and screen time as outlined here.

Pre-lab activities

After having watched the lectures and read the textbook chapter you’ll be in a good position to try these activities. Completing them before you attend your lab session will help you to consolidate your learning and help move through the lab activities more smoothly.

Pre-lab activity 1: Read the project pre-registration

In the lectures, we discuss how theory should guide which predictor variables we include in a linear model. A pre-registration is where researchers set out these choices before they collect or analyse their data.

Read the pre-registered research plan for the Clearly Understood health information research project.

Read the project pre-registration

As you read, make notes on the following questions:

  1. What is the outcome the researchers want to predict, and how is it measured?
  2. Which predictor variables did they plan to include, and what reasons do they give for including them?
  3. What did they predict they would find?
Tip

You already wrote a pre-registration for your own group project. Look at how this one is set out: it is a useful model for your own in future.

Pre-lab activity 2: Predict before you look

In the lab, we will fit a linear model that predicts mean accuracy of understanding (mean.acc) from four predictors at the same time:

  • health literacy (HLVA);
  • vocabulary knowledge (SHIPLEY);
  • reading strategy (FACTOR3);
  • age in years (AGE).

Before the lab, write down your predictions:

  1. Which of these four predictors do you expect to have a significant effect on mean.acc when all four are in the same model?
  2. For each predictor, do you expect the effect to be positive (higher scores go with higher accuracy) or negative (higher scores go with lower accuracy)?

You can use what you found in the Week 7 lab to help you. Keep your predictions: you will compare them with the results in Step 5 of the lab.

Pre-lab activity 3: Continue work on your study

Thank you for submitting your pre-registrations. The module coordinator has read through your pre-registrations and given each group individual feedback. Many of you made a good start.

Next steps

  1. Review the summary of the most common issues with the pre-registrations. The summary includes do’s and don’ts and a checklist, that you can check your own project against.
  2. Complete the Preparing your study for Gorilla activity with your group.

Pre-lab activity 4: Getting ready

To complete this week’s lab activity you will need several files:

  1. We’ll work with an example script called 4141_wk8_lab.qmd. This is a Quarto document.
  2. We’ll also need a data file named study-two-general-participants.csv. This is the same data file we used in Week 7.

You can download the files here: 4141_wk8_lab.zip. Usually they will be saved in your ‘Downloads’ folder.

Next, upload the zip-folder as it is to your Files space on the R-server (bottom right quadrant; no need to extract the files first).

Finally, open the example script by clicking on the file called 4141_wk8_lab.qmd in the Files space on the R-server.

You are now ready to start work on the lab activities.

Lab activities

Lab activity 1: What makes it easy or difficult for people to understand written health information?

We will do our practical lab work to develop your skills in the context of the Clearly Understood project.

Important

The research question we are focussing on today is:

  1. What person attributes predict success in understanding health information?

In Week 7, we used linear models with one predictor at a time. This week (Week 8), we extend the linear model in two ways:

  1. We fit linear models with multiple predictors. This is why this form of analysis is often called multiple regression.
  2. We include a categorical (nominal) variable as a predictor, as well as numeric variables.
Where are the download links?

Links to the files to be downloaded are in the Pre-lab activities section under Getting ready.

Aims of the activity

We are going to:

  1. Setup the appropriate bits and pieces in RStudio – using rm() and library()
  2. Read in and inspect the data – using read_csv(), head() and summary()
  3. Recap: draw a histogram and a scatterplot – using ggplot()
  4. Revise: fit a linear model with one predictor, and identify the model fit statistics (F, R-squared) – using lm()
  5. Fit a linear model with multiple predictors – using lm()
  6. Report the results of a linear model with multiple predictors
  7. Plot model predictions – using ggpredict()
  8. Draw boxplots to compare groups – using geom_boxplot()
  9. Fit a linear model with a categorical predictor
  10. Extension: Can people accurately evaluate whether they understand written health information?
Tip

Steps 1 to 9 are the main lab activity. If you are short of time, skip Step 3 (a recap of Week 7) and come back to it later. Step 10 is an extension: do it if you have time, or after the lab.

How to use the Quarto document?

All instructions and guidance (including hints and code snippets) for lab activities are presented on this handbook page.

The Quarto document is largely empty, only containing a copy of the section headers and the actions to remind you of what you are meant to do. Sometimes there are questions associated with the code you’ve written or the output that follows from it. These can also be found on both the handbook page and in the Quarto document.

How to complete the lab activity and use the Quarto script:

  1. Open the handbook pages in a separate window or tab and navigate to Lab activities.
  2. Read the instructions on the handbook page for each step.
  3. Carry out the actions, by inserting a code chunk in the Quarto document, below each action.
  4. If there are any questions associated with that step, please try to answer them. You can write your answer in the Quarto document, as plain text. Answers to the questions will be shared after the last lab session has taken place (on Thursday afternoon).
  5. After having carried out an action, written a code chunk and answered any questions, go back to the handbook page and read the next bit of instruction, until you get to the next action.
  6. If you are stuck: Have a look at the ‘Hints’ and ‘Code’ snippets on the handbook page.
  7. If you are still stuck: Ask for help (your peers on your table, the GTA or lecturer in the lab session, via the Moodle Q&A forum, during Friday’s live online Q&A).

If you’d like to watch a demonstration of this, have a look at the video at the start of Lab activity 3 of Week 5 (here).

Step 1: Setup the appropriate bits and pieces in RStudio

Action: In a new code chunk, add the code to empty the R environment. Then add the code to load the relevant libraries. We need the following ones: here, tidyverse, easystats and ggeffects.

  • rm(list=ls()) removes all the objects (datasets, models) currently stored in the Environment (top right quadrant), so that nothing left over from earlier work, for example from Week 7, gets mixed up with this week’s work.
  • Use the library() function to load each package.
  • ggeffects is new this week. We use it in Step 7 to plot the predictions of a linear model.
rm(list=ls())

library(here)
library(tidyverse)
library(easystats)
library(ggeffects)

Step 2: Read in and inspect the data

The data file for this lab activity is study-two-general-participants.csv, the same file we used in Week 7.

You can see the columns:

  • participant_ID participant code;
  • mean.acc average accuracy of response to questions testing understanding of health guidance (varies between 0-1);
  • mean.self average self-rated accuracy of understanding of health guidance (varies between 1-9);
  • study variable coding for what study the data were collected in
  • AGE age in years;
  • HLVA health literacy test score (varies between 1-16);
  • SHIPLEY vocabulary knowledge test score (varies between 0-40);
  • FACTOR3 reading strategy survey score (varies between 0-80);
  • GENDER gender code;
  • EDUCATION education level code;
  • ETHNICITY ethnicity (Office National Statistics categories) code.

Action 1. In a new code chunk use read_csv() and here() to read in the data file. Give the data object a distinct name, e.g. study.two.gen. Check that you can see the object in the Environment (top right quadrant).

Action 2. Use head() and summary() to get an overview of the data.

  • The code is the same as in Week 7, but the data file is now in the 4141_wk8_lab folder.
  • In the summary() output, pay attention to the variables of class character. These are categorical (nominal) variables. We will use one of them as a predictor in Step 9.
study.two.gen <- read_csv(here("4141_wk8_lab", "study-two-general-participants.csv"))

head(study.two.gen)
summary(study.two.gen)

Questions Step 2

  1. Which variables are of class character?

Step 3: Recap – draw a histogram and a scatterplot

In Week 7, we did not look at the reading strategy variable FACTOR3. We include it in our model in Step 5, so first take a look at it, using what you learned in Week 7. If you are short of time, skip this step.

Action 1. Draw a histogram of FACTOR3. Set a binwidth, use theme_bw(), edit the labels with labs(), set the x-axis limits to the possible range of scores (0-80) with xlim(), and add a vertical line showing the mean.

ggplot(data = study.two.gen, aes(x = FACTOR3)) +
  geom_histogram(binwidth = 2) +
  theme_bw() +
  labs(x = "Reading strategy (FACTOR3)", y = "Frequency count") +
  xlim(0, 80) +
  geom_vline(xintercept = mean(study.two.gen$FACTOR3), colour = "red", linewidth = 1.5)

R will show the warning Removed 2 rows containing missing values (geom_bar()). This is not a problem with the data: xlim() removes the two empty bars at the very edges of the x-axis, which fall just outside the limits.

Action 2. Draw a scatterplot of the association between FACTOR3 (x-axis) and mean.acc (y-axis), and edit its appearance as you did in Week 7.

ggplot(data = study.two.gen, aes(x = FACTOR3, y = mean.acc)) +
  geom_point(alpha = 0.5, size = 2, colour = "blue", shape = 'square') +
  theme_bw() +
  labs(x = "Reading strategy (FACTOR3)", y = "Mean accuracy") +
  xlim(0, 80) + ylim(0, 1)

Questions Step 3

  1. What is the direction of the association between FACTOR3 and mean.acc? Does it look strong or weak?

Step 4: Revise – fit a linear model with one predictor

We start by revising how to use lm() with one predictor: the model of mean.acc and HLVA that you fitted in Week 7.

Action: In a new code chunk, use lm() to fit a model with mean.acc as the outcome and HLVA as the predictor. Then get the model summary.

model.1 <- lm(mean.acc ~ HLVA, data = study.two.gen)
summary(model.1)

In Week 7, we looked at the coefficient estimates. This week, we also look at the information at the bottom of the model summary:

  • Adjusted R-squared tells us how much of the variation in the outcome the model accounts for, as a proportion between 0 and 1.
  • F-statistic tests whether the model as a whole predicts the outcome better than a model with no predictors. It is reported with two degrees of freedom (DF) and a p-value.

Questions Step 4

  1. What is the estimate for the coefficient of HLVA, and what does it mean in words?
  2. Report the F-statistic (F, the two DF values and the p-value) and the Adjusted R-squared.
  3. Explain in words what this R-squared value indicates.

Step 5: Fit a linear model with multiple predictors

Now we fit a model that includes all of these predictors at the same time: health literacy (HLVA), vocabulary knowledge (SHIPLEY), reading strategy (FACTOR3) and age in years (AGE). This is the same model as the one presented in the lectures.

Action: In a new code chunk, use lm() to fit a model with mean.acc as the outcome and HLVA, SHIPLEY, FACTOR3 and AGE as the predictors. Give the model a new name. Then get the model summary. Try to write the code yourself before you look at the Code below.

How do we add more predictors?

We list the predictor variables on the right of the tilde ~, separated by a plus sign +:

model <- lm(outcome ~ predictor.1 + predictor.2 + predictor.3, data = data.set)
summary(model)
  • The model summary now has one row in the Coefficients table for each predictor.
  • Each coefficient estimate shows the predicted change in the outcome for a one-unit increase in that predictor, while holding the other predictors constant.
model.2 <- lm(mean.acc ~ HLVA + SHIPLEY + FACTOR3 + AGE, data = study.two.gen)
summary(model.2)

Questions Step 5

  1. Which predictors have a significant effect on mean.acc? Does this match the predictions you wrote down in Pre-lab activity 2?
  2. Compare the HLVA estimate with the estimate in Step 4. Why do you think it has changed?
  3. Compare the Adjusted R-squared with the model in Step 4. What does the difference tell you?
  4. Does the AGE estimate suggest that older or younger participants were more accurate? Is the effect significant?
  • For question b: health literacy and vocabulary knowledge are both measures of language experience. How might they be related to each other? You can check the correlation between them using correlation(), as you did in Week 7.
  • For question d: think about what a negative estimate means for the direction of the prediction line.

Step 6: Report the results of a linear model with multiple predictors

When we report a linear model with multiple predictors, we report the model we specified (the outcome and all the predictors), the model fit statistics (F with its degrees of freedom and p-value, and Adjusted R-squared) and, for each predictor, the estimate, t, p and the direction of the effect.

Action: In your Quarto document, write a short report of the model you fitted in Step 5. Write it as plain text, not in a code chunk. Use the example in the lectures and the template in the Hint.

Fill in the gaps ... using the model summary from Step 5.

We fitted a linear model with mean comprehension accuracy as the outcome and health literacy (HLVA), vocabulary knowledge (SHIPLEY), reading strategy (FACTOR3) and age (years) as predictors. The model is significant overall, F(…, …) = …, p …, and explains …% of variance (adjusted R² = …). The model estimates showed that the accuracy of comprehension increased with higher levels of … (b = …, t = …, p …), …

  • Report the estimate as b. In the lecture slides the estimate is written as β. In APA style, β is normally used for standardised estimates, and the estimates from lm() are unstandardised, so we use b. See here for guidance on APA reporting
  • Round t and R-squared to two decimal places. Our estimates are small because mean.acc runs from 0 to 1, so give b to three decimal places (e.g. b = 0.003, not 0.00).
  • Write a leading zero for b (e.g. 0.017), but not for p or R-squared (e.g. p = .005, R² = .36), because these cannot be larger than 1.
  • When R shows a very small p-value (e.g. 2.87e-12), report it as p < .001.

Step 7: Plot model predictions

In Week 7, we used geom_abline() to draw a prediction line from the intercept and slope of a model with one predictor. With multiple predictors, the prediction depends on the values of all the predictors, so we use ggpredict() from the {ggeffects} library. It works out the predicted outcome across the range of one predictor, while holding the other predictors constant at their average (mean) values.

Action 1. Use ggpredict() to get the predictions for HLVA from the model you fitted in Step 5. Print the predictions by typing the name you gave them, then plot them with plot(). Do the same for SHIPLEY.

dat.HLVA <- ggpredict(model.2, "HLVA")
dat.HLVA
plot(dat.HLVA)

dat.SHIPLEY <- ggpredict(model.2, "SHIPLEY")
dat.SHIPLEY
plot(dat.SHIPLEY)
  • ggpredict(model.2, "HLVA") tells R which model to use (model.2) and which predictor we want predictions for ("HLVA", in quotation marks).
  • The printed predictions show, under Adjusted for:, the values the other predictors are held at.
  • In the plot, the line shows the predicted mean.acc and the shaded band shows the 95% confidence interval.
  • Optional: make prediction plots for FACTOR3 and AGE in the same way.

plot() zooms the y-axis in on the range of the predictions, so each plot has a different y-axis. This can make a small effect look large.

Action 2. plot() produces a ggplot, so you can edit it like your other plots. Edit the HLVA plot using theme_bw(), labs() and ylim(), setting the y-axis to the full possible range of mean.acc (0-1).

plot(dat.HLVA) +
  theme_bw() +
  labs(x = "Health literacy (HLVA)", y = "Predicted mean accuracy", title = "") +
  ylim(0, 1)

R will show the message Scale for y is already present. Adding another scale for y, which will replace the existing scale. This is not an error: it tells you that ylim() has replaced the y-axis that plot() set.

Questions Step 7

  1. Use the HLVA estimate from Step 5 to work out how much predicted accuracy changes between an HLVA score of 4 and a score of 14. Check your answer against the printed predictions.
  2. The estimate for SHIPLEY is smaller than the estimate for HLVA. Does this mean that vocabulary knowledge matters less than health literacy? Compare the two prediction plots, and check their axes.

Step 8: Draw boxplots to compare groups

Next, we look at a categorical variable: education level (EDUCATION). Participants reported their education as Further (further education), Higher (higher education) or Secondary (secondary school). A boxplot shows the distribution of a numeric outcome for each group: the middle line is the median, and the box holds the middle 50% of scores.

Action: In a new code chunk, draw boxplots of mean.acc for each level of EDUCATION, with each participant’s score shown as a point.

ggplot(data = study.two.gen, aes(x = EDUCATION, y = mean.acc)) +
  geom_jitter(width = 0.2, height = 0, alpha = 0.5) +
  geom_boxplot(outlier.shape = NA, colour = "red", alpha = 0.1) +
  theme_bw() +
  labs(x = "Education level", y = "Mean accuracy") +
  ylim(0, 1)
  • The x variable must be categorical (EDUCATION) and the y variable numeric (mean.acc).
  • geom_jitter() draws a point for each participant, moved slightly left or right so that points do not sit on top of each other. height = 0 keeps each point at the participant’s real score.
  • outlier.shape = NA stops geom_boxplot() drawing outlying scores a second time, because they are already shown as points.
  • See the reference pages for geom_boxplot() and geom_jitter().

Questions Step 8

  1. Compare the medians of the three groups, and the number of participants in each group. Why might the group sizes matter?
  2. Optional: draw the same plot for ETHNICITY. What does it show you about the participant sample?

Step 9: Fit a linear model with a categorical predictor

lm() can include categorical variables as predictors, added to the model in exactly the same way as numeric variables.

Action 1. Fit a model with mean.acc as the outcome and HLVA, SHIPLEY, FACTOR3, AGE and EDUCATION as predictors. Give the model a new name. Then get the model summary.

model.3 <- lm(mean.acc ~ HLVA + SHIPLEY + FACTOR3 + AGE + EDUCATION, data = study.two.gen)
summary(model.3)
How does R handle a categorical predictor?
  • R picks one of the categories (levels) to be the reference (baseline) level. Unless you tell it otherwise, it picks the level whose name comes first in the alphabet: here, Further.
  • The model summary has a row for each of the other levels: EDUCATIONHigher and EDUCATIONSecondary.
  • Each estimate is the predicted difference in the outcome between that level and the reference level, holding the other predictors constant.

There are other ways to code categorical predictors, which you will meet in later years.

Action 2. Use ggpredict() and plot() to plot the predicted effect of EDUCATION.

dat.EDUCATION <- ggpredict(model.3, "EDUCATION")
plot(dat.EDUCATION)

For a categorical predictor, the plot shows a dot for the predicted mean.acc of each group, and whiskers (lines) showing the 95% confidence interval: longer lines mean more uncertainty. The 95% refers to the procedure, not to one particular interval: if we repeated the study over and over, 95% of the intervals calculated in this way would contain the true value (Hoekstra et al., 2014).

Questions Step 9

  1. Which level of EDUCATION is the reference level?
  2. What does the estimate for EDUCATIONSecondary mean? Is it significant?
  3. In the plot, which group has the longest whiskers? Why do you think this is?
  4. Stretch question: in the boxplot in Step 8, the Secondary group looked noticeably less accurate than the other two groups. Why is the difference estimated in the model smaller?
Tip

You can read more about confidence intervals here:

Hoekstra, R., Morey, R. D., Rouder, J. N., & Wagenmakers, E. J. (2014). Robust misinterpretation of confidence intervals. Psychonomic Bulletin & Review, 21, 1157-1164.

Step 10: Extension – Can people accurately evaluate whether they understand written health information?

Important

The second research question in the Clearly Understood project is:

  1. Can people accurately evaluate whether they correctly understand written health information?

Participants also rated how well they thought they understood each health text, on a scale from 1 (not at all) to 9 (very well), which gave us their mean.self scores. If people can evaluate their own understanding, their ratings should be associated with their tested accuracy (mean.acc).

Action 1. Fit a model with mean.self as the outcome and mean.acc as the predictor. Then fit a second model the other way round: mean.acc as the outcome and mean.self as the predictor. Give each model a different name and get the summaries.

model.self <- lm(mean.self ~ mean.acc, data = study.two.gen)
summary(model.self)

model.acc <- lm(mean.acc ~ mean.self, data = study.two.gen)
summary(model.acc)

Action 2. Use ggpredict() and plot() to plot the predictions from each model.

dat.self <- ggpredict(model.self, "mean.acc")
plot(dat.self)

dat.acc <- ggpredict(model.acc, "mean.self")
plot(dat.acc)

Questions Step 10

  1. In the model with mean.self as the outcome, is mean.acc a significant predictor? What does this suggest is the answer to research question 2?
  2. Compare the two models. Why are the slope estimates so different, when the variables and the data are the same? What do you notice about the t values, p-values and R-squared values?
  • mean.acc is scaled from 0 to 1 (the proportion of questions answered correctly) and mean.self is scaled from 1 to 9 (the average rating).
  • A coefficient estimate is the predicted change in the outcome for a one-unit increase in the predictor. What does a one-unit increase mean for each of the two variables?

Lab activity 2: Research project - Build your study

Tip

Before you start this lab activity, make sure you’ve completed the next steps outlined in the Pre-lab activity:

  1. Review the summary of the most common issues with the pre-registrations. The summary includes do’s and don’ts and a checklist, that you can check your own project against.
  2. Complete the Preparing your study for Gorilla activity with your group.

Building your study happens in two phases.

First, each group needs to build three questionnaires on Gorilla:

  1. One to measure (an aspect of) mind wandering
  2. One to measure (an aspect of) screen time
  3. One to measure relevant demographics.

Second, once you’ve build the individual questionnaires, you can build your experiment.

You can check that you have all the information you need for each phase by using the two checklists on the project page:

  1. Checklist 1: Before you build the individual measures here
  2. Checklist 2: Before you put your study together in the Experiment Builder here
Tip

On the project page in the sections on Building your own measures and Building your experiment, you’ll also find links to relevant Gorilla support pages.

Lab activity 3: Research report - Plan your introduction

The same decisions that have gone into building your study on Gorilla, also shape the introduction of your research report, which needs to make an argument for why your study makes sense and why it is designed the way it is. A section of the handbook on the research report will be released soon. This will include an activity on Building the rationale for your study to help you plan this.

Answers

Tip

Answers to the questions in lab activities will be shared after the final lab session of the week has concluded (Thursday afternoon)

Back to top