Skip to content

Commit 770ec46

Browse files
committed
Add plots for word-level comprehension models
word_level_comprehension_model_0_logistic word_level_comprehension_model_1_logistic word_level_comprehension_model_2_logistic word_level_comprehension_model_3_logistic word_level_comprehension_model_4_logistic
1 parent 80ed1c3 commit 770ec46

8 files changed

+67
-0
lines changed

code/analysisWordLevelReadAloudBeta.R

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,15 @@ word_level_comprehension_model_0_logistic <-
976976
data=errorDat, family = "binomial")
977977
summary(word_level_comprehension_model_0_logistic)
978978

979+
plot_glmer(
980+
word_level_comprehension_model_0_logistic,
981+
predictor = 'scaaredSoc_z',
982+
outcome = 'Probability of accurate comprehension\n(word-level)',
983+
xlab = 'SCAARED-Social score\n(z-scored)',
984+
main = 'Social Anxiety Severity and Item-Level Comprehension Accuracy'
985+
)
986+
987+
979988
# Misproduction to predict comprehension accuracy
980989
# n.s.
981990
# misprod_predictor1 0.009751 0.023084 0.422 0.673
@@ -984,6 +993,14 @@ word_level_comprehension_model_1_logistic <-
984993
data=errorDat, family = "binomial")
985994
summary(word_level_comprehension_model_1_logistic)
986995

996+
plot_glmer(
997+
word_level_comprehension_model_1_logistic,
998+
predictor = 'misprod_predictor',
999+
outcome = 'Probability of accurate comprehension\n(word-level)',
1000+
xlab = 'Presence/absence of misproduction (word-level)',
1001+
main = 'Item-Level Misproductions and Comprehension Accuracy'
1002+
)
1003+
9871004
# Hesitation to predict comprehension accuracy
9881005
# n.s.
9891006
# hesitation_predictor1 0.03030 0.02167 1.398 0.162
@@ -992,6 +1009,14 @@ word_level_comprehension_model_2_logistic <-
9921009
data=errorDat, family = "binomial")
9931010
summary(word_level_comprehension_model_2_logistic)
9941011

1012+
plot_glmer(
1013+
word_level_comprehension_model_2_logistic,
1014+
predictor = 'hesitation_predictor',
1015+
outcome = 'Probability of accurate comprehension\n(word-level)',
1016+
xlab = 'Presence/absence of hesitation (word-level)',
1017+
main = 'Item-Level Hesitations and Comprehension Accuracy'
1018+
)
1019+
9951020
# Interaction between misproduction and social anxiety to predict comprehension accuracy
9961021
# n.s.
9971022
# misprod_predictor1 0.00975 0.02309 0.422 0.673
@@ -1002,6 +1027,28 @@ word_level_comprehension_model_3_logistic <-
10021027
data=errorDat, family = "binomial")
10031028
summary(word_level_comprehension_model_3_logistic)
10041029

1030+
interact_plot(model = word_level_comprehension_model_3_logistic,
1031+
pred = misprod_predictor,
1032+
modx = scaaredSoc_z,
1033+
interval = TRUE,
1034+
x.label = 'Presence/absence of misproduction (word-level)',
1035+
y.label = 'Probability of accurate comprehension\n(word-level)',
1036+
legend.main = "SCAARED-Social score\n(z-scored)",
1037+
main.title = "Item-Level Misproductions, Comprehension Accuracy, and Social Anxiety Severity") +
1038+
theme(plot.title = element_text(hjust = 0.5))
1039+
1040+
# alternative version
1041+
interact_plot(model = word_level_comprehension_model_3_logistic,
1042+
pred = scaaredSoc_z,
1043+
modx = misprod_predictor,
1044+
interval = TRUE,
1045+
x.label = 'SCAARED-Social score\n(z-scored)',
1046+
y.label = 'Probability of accurate comprehension\n(word-level)',
1047+
legend.main = "Presence/absence of misproduction (word-level)",
1048+
main.title = "Item-Level Misproductions, Comprehension Accuracy, and Social Anxiety Severity") +
1049+
theme(plot.title = element_text(hjust = 0.5))
1050+
1051+
10051052
# Interaction between hesitation and social anxiety to predict comprehension accuracy
10061053
# n.s.
10071054
# hesitation_predictor1 0.031587 0.022160 1.425 0.154
@@ -1012,6 +1059,26 @@ word_level_comprehension_model_4_logistic <-
10121059
data=errorDat, family = "binomial")
10131060
summary(word_level_comprehension_model_4_logistic)
10141061

1062+
interact_plot(model = word_level_comprehension_model_4_logistic,
1063+
pred = hesitation_predictor,
1064+
modx = scaaredSoc_z,
1065+
interval = TRUE,
1066+
x.label = 'Presence/absence of hesitation (word-level)',
1067+
y.label = 'Probability of accurate comprehension\n(word-level)',
1068+
legend.main = "SCAARED-Social score\n(z-scored)",
1069+
main.title = "Item-Level Hesitations, Comprehension Accuracy, and Social Anxiety Severity") +
1070+
theme(plot.title = element_text(hjust = 0.5))
1071+
1072+
# alternative version
1073+
interact_plot(model = word_level_comprehension_model_4_logistic,
1074+
pred = scaaredSoc_z,
1075+
modx = hesitation_predictor,
1076+
interval = TRUE,
1077+
x.label = 'SCAARED-Social score\n(z-scored)',
1078+
y.label = 'Probability of accurate comprehension\n(word-level)',
1079+
legend.main = "Presence/absence of hesitation (word-level)",
1080+
main.title = "Item-Level Hesitations, Comprehension Accuracy, and Social Anxiety Severity") +
1081+
theme(plot.title = element_text(hjust = 0.5))
10151082

10161083

10171084
# hesitation ~ wf x SA
44.9 KB
Loading
42.2 KB
Loading
40.3 KB
Loading
62.5 KB
Loading
59.4 KB
Loading
63.3 KB
Loading
60.2 KB
Loading

0 commit comments

Comments
 (0)