W8: LMM Part 1 Flashcards

1
Q

What do you use egltabe( c (“loneliness”, “sex”), data =d, strict = FALSE) for?

A

To get summary descriptive statistics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When using egltable() and plot(testDistribution) for BETWEEN variables, there is a problem of weighted means. How do you solve that?

A

Remove duplicate IDs
* egltable(c(“loneliness”, “sex”), data =
dm[!duplicated( ID ) ] )
* plot(testDistribution(
dm [!duplicated( ID )]$loneliness) )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When getting descriptives for continuous RM (within) variables, there is an issue of including total variance (between and within). How do you only calculate the mean of individual means (between units only)?

A

Create between and within variables using meanDeviations()
m[, c(“Bstress”, “Wstress”) := meanDeviations(dStress), by = ID]
then calculate as usual:
egltable(c(“Bstress”), data = dm[!duplicated(ID)])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

If we want descriptives of mean for all observations (regardless of between or within), do we use dstress or bstress?

A

egltable(c(“dStress”), data = dm)
includes both between + within variance (possible unequal weights participants)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are 2 ways to group calculation of between unit variance for continuous RM variables

A

Group by days
egltable(c(“dStress”), g = “SurveyDay”, data = dm)
* or indicate individual timepoints
egltable(c(“dStress”), data = dm[SurveyDay == 1])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

For descriptives of categorical (within) RM variables, what are they normally reported as?

A

Frequencies (N) or percentages (%)
e.g using overall variable: egltable(“Int_Fri”, data = dm, strict = FALSE)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the 2 common estimators used with LMMs?

A
  1. Maximum Likelihood (ML): population variance
    REML = FALSE
  2. Restricted Maximum Likelihood (REML): population variance from sample, less biased
    REML = TRUE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is ML used for?

A

Model comparisons

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are 2 main uses of random intercept models?

A
  1. Model comparison (how much better complex model fits)
  2. Calculate ICC
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

“scaled Pearson residuals” from lmer() output is useful to identify what?

A

Outliers based on “Min” (lowest residual) and “Max” (maximum residual)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Std. Dev of “random intercept” from lmer() output represents what for a random intercept only model?

A

The average difference between individual’s average score and population average score of variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Std. Dev of “random residuals” from lmer() output represents what?

A

Average difference between individual score and predicted score of variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you calculate confidence intervals for random effects?

A

Using profile likelihood confidence intervals
confint(x, method = “profile”, oldNames = FALSE)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Do we need to check if linear association between predictor and outcome is appropriate for intercept only models?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

When interpreting that there are individual differences, do we refer to standard deviation of random intercept or random residuals?

A

SD of random intercept

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

After seeing individual differences..
Assuming the random intercepts follow a normal distribution, we would expect most people to fall within..

A

1 SD of the mean
(Std. Dev. from random intercept + / - est. of fixed effect)

17
Q

What random / fixed components are shown in this:
lmer(dStress ~ dEnergy + (1 | ID) )

A

Fixed effect of dEnergy
Random intercept : (1 | ID)

18
Q

When there is a fixed predictor and random intercept involved in a model, how do we interpret the Std. Dev. of random intercept from the output?

A

It is the average difference between an individual’s estimated score and population average estimated score when predictor is 0

19
Q

When there is a fixed predictor and random intercept involved in a model, how do we interpret the estimate of the fixed effect from the output?

A

It is the mean/average score when predictor is 0

20
Q

What fixed or random components are shown in this:
lmer(dStress ~ Benergy + Wenergy + (1 | ID) )

A

Fixed effects of Benergy (average energy per person across days) and Wenergy (individual deviations from that person’s average energy)
Random intercept : (1 | ID )

21
Q

What does the Std. Dev. of random intercepts tell us from the output of this model:
lmer(dStress ~ Benergy + Wenergy + (1 | ID) )

A

The average difference between individual’s estiamted stress and population’s average estimated stress when Benergy and Wenergy are 0

22
Q

What does the fixed intercept tell us from the output of this model:
lmer(dStress ~ Benergy + Wenergy + (1 | ID) )

A

Average estimated stress score when Benergy and Wenergy are 0

23
Q

What does the fixed estimate of Benergy tell us from the output of this model:
lmer(dStress ~ Benergy + Wenergy + (1 | ID) )

A

Expected change in stress on average across days when average energy is 1 unit higher

24
Q

What does the fixed estimate of Wenergy tell us from the output of this model:
lmer(dStress ~ Benergy + Wenergy + (1 | ID) )

A

Expected change in stress that day when energy is 1 unit higher than individual’s own average that same day

25
Q

REML is less biased than ML because it doesn’t require the….

A

mean

26
Q

The fixed intercept from lmer() means what?

A

Average estimated y when predictor(s) = 0
* the mean of the random intercept

27
Q

What is the difference between Wald and Profile confint methods?

A

Wald can only calculate fixed effect confint (intercept)
Profile Likelihood can calculate both fixed and random effects