session_nov_summary <- CIG_merge_averaged %>%
filter (i_e %in% c ("i" , "e" )) %>%
group_by (session.name, condition.name) %>%
summarize (
avg_nov_ideas = mean (nov_avg[i_e == "i" ], na.rm = TRUE ),
avg_nov_elabs = mean (nov_avg[i_e == "e" ], na.rm = TRUE ),
total_ideas = sum (i_e == "i" , na.rm = TRUE ),
total_elabs = sum (i_e == "e" , na.rm = TRUE ),
nraters = first (nraters),
.groups = "drop"
)
session_nov_summary <- session_nov_summary %>%
mutate (Feedback = case_when (
grepl ("F" , condition.name) ~ "Feedback" ,
.default = "No Feedback"
),
Two_or_three = case_when (
grepl ("2" , condition.name) ~ "Linear" ,
.default = "Cyclical"
))
anova_ideas <- anova_test (avg_nov_ideas ~ Feedback * Two_or_three,
data = session_nov_summary,
type = 3 )
anova_ideas
ANOVA Table (type III tests)
Effect DFn DFd F p p<.05 ges
1 Feedback 1 81 3.370e-01 0.563 4.00e-03
2 Two_or_three 1 81 3.226e+00 0.076 3.80e-02
3 Feedback:Two_or_three 1 81 1.440e-08 1.000 1.78e-10
nov_ideas_plot <- ggline (data = session_nov_summary,
x= "Feedback" ,
y = "avg_nov_ideas" ,
color = "Two_or_three" ,
add = "mean_ci" ,
palette = "jco" ,
ylab = "Average Novelty of Ideas" ,
size = 1.25 ,
legend = c (.9 ,.8 ),
legend.title = "" ,
ylim = c (1 ,5 ),
xlim = c (1.25 ,1.75 ),
position = position_dodge (width = .025 ))
nov_ideas_plot
ggsave ("plots/nov_ideas_plot.svg" , nov_ideas_plot, dpi = 600 , width = 5 , height = 5 )
anova_elabs <- anova_test (avg_nov_elabs ~ Feedback * Two_or_three,
data = session_nov_summary,
type = 3 )
Warning: NA detected in rows: 8,10,13,15,21,22,23,24,25,30,31,33,34,35,36,37,39,40,42,43,44,45,47,48,49,50,53,54,57,61,62,63,64,65,66,67,68,70,71,72,75,76,81,83,85.
Removing this rows before the analysis.
ANOVA Table (type III tests)
Effect DFn DFd F p p<.05 ges
1 Feedback 1 36 2.893 0.098 0.074
2 Two_or_three 1 36 3.105 0.087 0.079
3 Feedback:Two_or_three 1 36 1.014 0.321 0.027
nov_elab_plot <- ggline (data = session_nov_summary,
x= "Feedback" ,
y = "avg_nov_elabs" ,
color = "Two_or_three" ,
add = "mean_ci" ,
palette = "jco" ,
ylab = "Average Novelty of Elaborations" ,
size = 1.25 ,
legend = c (.9 ,.8 ),
legend.title = "" ,
ylim = c (1 ,5 ),
xlim = c (1.25 ,1.75 ),
position = position_dodge (width = .025 ))
nov_elab_plot
Warning: Removed 45 rows containing non-finite outside the scale range
(`stat_summary()`).
ggsave ("plots/nov_elab_plot.svg" , nov_elab_plot, dpi = 600 , width = 5 , height = 5 )
Warning: Removed 45 rows containing non-finite outside the scale range
(`stat_summary()`).
anova_countideas <- anova_test (total_ideas ~ Feedback * Two_or_three,
data = session_nov_summary,
type = 3 )
anova_countideas
ANOVA Table (type III tests)
Effect DFn DFd F p p<.05 ges
1 Feedback 1 81 0.375 0.542 0.005
2 Two_or_three 1 81 0.121 0.729 0.001
3 Feedback:Two_or_three 1 81 0.134 0.716 0.002
idea_count_plot <- ggline (data = session_nov_summary,
x= "Feedback" ,
y = "total_ideas" ,
color = "Two_or_three" ,
add = "mean_ci" ,
palette = "jco" ,
ylab = "Average Number of Ideas" ,
size = 1.25 ,
legend = c (.924 ,.95 ),
legend.title = "" ,
ylim = c (0 ,50 ),
xlim = c (1.25 ,1.75 ),
position = position_dodge (width = .025 ))
idea_count_plot
ggsave ("plots/idea_count_plot.svg" , idea_count_plot, dpi = 600 , width = 5 , height = 5 )
anova_countelabs <- anova_test (total_elabs ~ Feedback * Two_or_three,
data = session_nov_summary,
type = 3 )
anova_countelabs
ANOVA Table (type III tests)
Effect DFn DFd F p p<.05 ges
1 Feedback 1 81 0.015 0.903 0.000183
2 Two_or_three 1 81 2.195 0.142 0.026000
3 Feedback:Two_or_three 1 81 0.497 0.483 0.006000
elab_count_plot <- ggline (data = session_nov_summary,
x= "Feedback" ,
y = "total_elabs" ,
color = "Two_or_three" ,
add = "mean_ci" ,
palette = "jco" ,
ylab = "Average Number of Elaborations" ,
size = 1.25 ,
legend = c (.924 ,.8 ),
legend.title = "" ,
ylim = c (0 ,10 ),
xlim = c (1.25 ,1.75 ),
position = position_dodge (width = .025 ))
elab_count_plot
ggsave ("plots/elab_count_plot.svg" , elab_count_plot, dpi = 600 , width = 5 , height = 5 )