EDF9850_Example5a_Part2
Overview
Lesa Hoffman uses a multilevel model of morning log-transformed glucose to distinguish how negative mood relates to glucose between people and from day to day within people. She tests whether individual reactivity varies and whether it differs by gender, then demonstrates how to interpret interactions, calculate women’s simple slopes in R, attribute pseudo-R², and check model implications in a plot.
Key takeaways
- Person-mean centering separates two distinct findings: each unit of daily negative mood above a person's own average predicts a 0.027 increase in next-morning log glucose, while each unit of higher average negative mood between people predicts a 0.08 increase.
- The random slope for daily negative mood was nearly zero and failed the likelihood-ratio test, so the model retained a random intercept and autocorrelation but did not support individual differences in reactivity.
- With men coded 0 and women coded 1, women’s estimated within-person mood slope is about 0.015 and remains significant, while their between-person slope is about 0.035 and is not significant.
- A gender-by-within-person-mood interaction is cross-level: it tests whether a Level 2 characteristic, gender, moderates the Level 1 daily mood effect.
- Pseudo-R² attribution follows the model equation: Level 2 predictors in the intercept equation explain random-intercept variance, while a cross-level interaction explains residual variance if no random slope is included.
- Interaction plots serve as model checks: parallel lines within gender match a model without a three-way interaction; different slopes between genders display the cross-level moderation.
Chapters
- The research question is whether negative mood predicts morning glucose both between people and within people over time.
- Model 2A person-mean centers negative mood, retains the autocorrelation structure, and initially gives the within-person mood effect a fixed slope.
- A within-person value of zero means a person's negative mood is at their own average; positive values indicate grumpier-than-usual days.
- Each unit more negative mood than usual predicts a 0.027 increase in next-morning log glucose, while each unit higher person-average negative mood predicts a 0.08 increase in average glucose.
- The effects represent different relationships: daily fluctuations within a person versus cross-sectional differences between people.
- Person-average negative mood explains 2.8% of random-intercept variance; daily deviations explain 1% of residual variance.
- Model 2B adds a random slope so people can differ in how strongly daily negative mood relates to glucose.
- Adding that slope also adds its variance and its covariance or correlation with the random intercept.
- The estimated random-slope variance is nearly zero, and a likelihood-ratio test indicates it is unnecessary.
- The model retains the random intercept and residual autocorrelation but drops the random slope, implying insufficient evidence that reactivity varies across individuals.
- Despite the unsupported individual random slope, Hoffman tests the study's planned question of systematic gender differences in reactivity.
- Model 3 adds gender's main effect, its interaction with person-mean negative mood, and its cross-level interaction with daily negative mood.
- Gender moderation lets men and women have different slopes while assuming equal slopes among people within each gender.
- The random slope remains excluded; the model's interaction terms represent the specified gender differences.
- With men coded 0 and women coded 1, the intercept and both negative-mood main effects describe men; the intercept is for an average-grumpiness man on an average day.
- Women have marginally higher glucose at that reference point, while both mood effects are weaker for women than for men.
- The within-person mood slope for women is approximately 0.045 minus 0.03, or 0.015; the between-person slope is approximately 0.16 minus 0.125, or 0.035.
- R's linear-combination tools provide standard errors and p-values: the within-person effect remains significant for women, but the between-person effect does not.
- Linear combinations add the relevant main effect and interaction to estimate a group's simple slope; recoding women as 0 and refitting is an alternative.
- A joint F test can assess all three gender terms together: the gender main effect and the two mood-by-gender interactions.
- In the pseudo-R² comparison, gender's main effect and its interaction with person-mean mood explain random-intercept variance; together they add 1.3%.
- The cross-level interaction explains residual variance when no random slope is present; if a random slope had been retained, it could instead explain variance in that slope.
- The plotted values use the within-person negative-mood mean and values one standard deviation above and below it.
- Men's lines are steeper than women's, illustrating the cross-level interaction; the greater separation between men's happy and grumpy lines illustrates a stronger between-person mood effect.
- Parallel lines within each gender are consistent with the fitted model; nonparallel lines would require an additional interaction, such as a three-way interaction.
- Hoffman recommends checking whether plotted lines match the model and notes that plotting code is available in R and Excel.
Transcript excerpt
0:00 No, that's all right. >> We, we can have a a proper dinner maybe before you go to the game or something. >> Oh, actually if I go home I'm not hungry. >> Or an improper dinner, you know, whatever whatever gets you through, right? Chips and ice cream >> is so good, isn't it? >> Oh, ice cream is protein, I think, doesn't it? >> I like to say that it's a vegetable or like something similar because chocolate comes from a bean which comes from a plant. >> Yes, chocolate does come from a bean. >> And I feel like that is a vegetable. >> We'll take it. Yeah, I'll take it. Maybe not the best thing for your glucose, but, you know, there's my segue. All right. So, model 2A, I am looking at the one of the primary research questions. Does glucose follow negative mood? Between persons and within persons. So,
0:50 cross-sectional evidence, yes, these things are related. Longitudinal evidence, this is where the study was trying to make a novel contribution. So, we are doing person mean centering here for negative mood and then reminding us here that we would center at a constant so that zero is meaningful if zero weren't already meaningful. We're keeping the auto correlation since we just decided that it was needed and so far we're going to have only a fixed effect of level one negative mood. All righty. So, here's what we got. What does my intercept mean? It's the expected morning log transformed glucose
1:37 for What's the end of the sentence? What kind of person? Yeah, someone who's of average grumpiness. Person mean of zero. Yep. On what kind of day? So, a person with a mean negative mood of zero on a day What does zero mean in this predictor?
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Lesa Hoffman.