@@ -29,6 +29,7 @@ d.l1 <- read.csv("../data/2_L1_oneslider/2_L1_oneslider-trials.csv") %>%
29
29
30
30
d.l1.time <- read.csv("../data/2_L1_oneslider/2_L1_oneslider-time.csv")
31
31
32
+ summary(d.l1)
32
33
```
33
34
34
35
@@ -58,17 +59,17 @@ d.l1 %>%
58
59
filter(sentence_type != "Neither ... nor ...") %>%
59
60
ggplot(., aes( x = response,
60
61
fill = sentence_type))+
61
- geom_histogram(position = position_dodge())+
62
+ geom_histogram(position = position_dodge(), bins = 20 )+
62
63
#geom_density(alpha = 0.3)+
63
64
facet_wrap(~sentence_type, nrow = 1)+
64
65
scale_fill_solarized()+
65
66
ylab("counts")+
66
67
xlab("degree ratings")+
67
- scale_x_continuous(limits = c(-0.01, 1.01), breaks = c(0, 1))# +
68
- # guides(fill = F)
68
+ scale_x_continuous(limits = c(-0.01, 1.01), breaks = c(0, 1))+
69
+ guides(fill = F)
69
70
70
- # ggsave("~/Documents/research/talks/vagueness/negAnt_histograms .pdf",
71
- # width = 6 , height = 3)
71
+ ggsave("~/Documents/research/talks/vagueness/frisem-2018-01/img/negAnt_morpho2_histograms .pdf",
72
+ width = 7 , height = 3)
72
73
```
73
74
74
75
@@ -87,7 +88,8 @@ d.l1.boot <- d.l1 %>%
87
88
88
89
``` {r}
89
90
d.l1.boot %>%
90
- ggplot(., aes(x = sentence_type,
91
+ filter(sentence_type != "Neither ... nor ...") %>%
92
+ ggplot(., aes(x = sentence_type,
91
93
y = mean,
92
94
ymin = ci_lower, ymax = ci_upper,
93
95
fill = sentence_type,
@@ -105,7 +107,7 @@ ggplot(., aes(x = sentence_type,
105
107
theme(axis.text.x = element_text(angle = 45, hjust = 1, vjust = 1))+
106
108
guides(fill = F)
107
109
108
- # ggsave("~/Documents/research/talks/vagueness/cusp-2017/not-unhappy_bootstrapped .pdf", width = , height = 3.5)
110
+ ggsave("~/Documents/research/talks/vagueness/frisem-2018-01/img/negant_morpho2_bootstrapped .pdf", width = 4 , height = 3.5)
109
111
```
110
112
111
113
``` {r echo = F, eval = F}
@@ -136,6 +138,7 @@ d.l1.boot.adj <- d.l1 %>%
136
138
multi_boot_standard(col = "response")
137
139
138
140
d.l1.boot.adj %>%
141
+ filter(sentence_type != "Neither ... nor ...") %>%
139
142
ggplot(., aes(x = positive,
140
143
y = mean,
141
144
ymin = ci_lower, ymax = ci_upper,
@@ -153,6 +156,7 @@ ggplot(., aes(x = positive,
153
156
scale_y_continuous(limits = c(0,1), breaks = c(0, 0.5,1))+
154
157
theme(axis.text.x = element_text(angle = 45, hjust = 1, vjust = 1))
155
158
159
+ ggsave("~/Documents/research/talks/vagueness/frisem-2018-01/img/negant_morpho2_bootstrapped_item.pdf", width = 8, height = 3.5)
156
160
```
157
161
158
162
@@ -183,3 +187,25 @@ ggplot(., aes(x = positive,
183
187
184
188
```
185
189
190
+
191
+ First half vs. second half split
192
+
193
+ ``` {r}
194
+ d.l1.splithalf <- d.l1 %>%
195
+ mutate(splitHalf = ifelse(trial_num <= 15, "first", "second")) %>%
196
+ #filter(negation == "morphological") %>%
197
+ group_by(workerid, sentence_type) %>%
198
+ group_by(sentence_type, splitHalf) %>%
199
+ multi_boot_standard(col = 'response')
200
+
201
+
202
+ ggplot(d.l1.splithalf, aes(x = splitHalf, fill = sentence_type,
203
+ y = mean, ymin = ci_lower,
204
+ ymax = ci_upper))+
205
+ geom_col(position = position_dodge(), color = 'black')+
206
+ geom_errorbar(position = position_dodge())
207
+
208
+ ggsave("~/Documents/research/negant/analysis/figs/split_half-2_L1.pdf", width =6 , height = 4)
209
+ ```
210
+
211
+
0 commit comments