You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 17-inference-two-props.Rmd
+10-14
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ The process by which we randomize observations to two groups is summarized and v
52
52
53
53
Figure \@ref(fig:malaria-rand-dot-plot) shows a stacked plot of the differences found from 100 randomization simulations (i.e., repeated iterations as described in Figure \@ref(fig:fullrand)), where each dot represents a simulated difference between the infection rates (control rate minus treatment rate).
54
54
55
-
```{r malaria-rand-dot-plot, fig.cap="A stacked dot plot of differences from 100 simulations produced under the independence model $H_0,$ where in these simulations infections are unaffected by the vaccine. Two of the 100 simulations had a difference of at least 64.3%, the difference observed in the study.", warning=FALSE, fig.width=10}
55
+
```{r malaria-rand-dot-plot, fig.cap="A stacked dot plot of differences from 100 simulations produced under the independence model $H_0,$ where in these simulations infections are unaffected by the vaccine. Two of the 100 simulations had a difference of at least 64.3%, the difference observed in the study."}
@@ -356,7 +353,6 @@ If we are making 95% intervals, then 5% of the intervals we create over our life
356
353
What we know is that over our lifetimes as scientists, 95% of the intervals created and reported on will capture the parameter value of interest: thus the language "95% confident."
357
354
358
355
```{r ci25ints, fig.cap = "One hypothetical population, parameter value of: $p_1 - p_2 = 0.47.$ Twenty-five different studies all which led to a different point estimate, SE, and confidence interval. The study at hand is one of the horizontal lines (hopefully a blue line!).", warning = FALSE, fig.width = 10}
359
-
data(run09)
360
356
set.seed(52)
361
357
m <- 103.4594
362
358
s <- 19.31445
@@ -380,16 +376,16 @@ plot(xR, yR,
380
376
xlab = '',
381
377
ylab = '',
382
378
axes = FALSE)
383
-
abline(v = m, lty = 2, col = COL[5,2])
379
+
abline(v = m, lty = 2, col = IMSCOL["black", "f1"])
384
380
axis(1, at = m, expression('p'[1]*' - p'[2]*' = 0.47'))
385
381
for(i in 1:k){
386
382
ci <- means[i] + 2 * c(-1, 1) * SE[i]
387
383
if(abs(means[i] - m) > 1.96 * SE[i]){
388
-
col <- COL[4]
384
+
col <- IMSCOL["red", "full"]
389
385
points(means[i], i, cex = 1.4, col = col)
390
386
lines(ci, rep(i, 2), col = col, lwd = 4)
391
387
} else {
392
-
col <- COL[1]
388
+
col <- IMSCOL["blue", "full"]
393
389
}
394
390
points(means[i], i, pch = 20, cex = 1.2, col = col)
395
391
lines(ci, rep(i, 2), col = col)
@@ -692,7 +688,7 @@ That is, the difference in breast cancer death rates is reasonably explained by
0 commit comments