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: causal_intro/article/intro-causality.qmd
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -456,12 +456,6 @@ We can estimate the total causal effect of *Rigour* on *Reproducibility* simply
456
456
457
457
$$\text{Reproducibility} \sim \text{Rigour}$$
458
458
459
-
Since we simulated the data, we can calculate the "true" causal effect, which in this case is `r round(rigour_effect_on_reproducibility, 2)` (see [Appendix -@sec-appendix-rigour-on-reproducibility] for details).
460
-
We can hence validate our regression approach and see if it is capable of correctly inferring the true causal effect.
461
-
@fig-rigour-on-reproducibility shows that the regression approach is capable of retrieving the correct result.
462
-
We deliberately chose a moderate sample size of `r nrow(df)` for our simulation.
463
-
Point estimates derived from the simulated data thus only approximate the theoretical values.
464
-
465
459
```{r}
466
460
# compute the theoretical effect of rigour on reproducibility
467
461
field1 <- function(x) x * plogis(get_coefs("intercept", "open_data") + get_coefs("rigour", "open_data") * x + get_coefs("field", "open_data")[[1]]) * dnorm(x)
Since we simulated the data, we can calculate the "true" causal effect, which in this case is `r round(rigour_effect_on_reproducibility, 2)` (see [Appendix -@sec-appendix-rigour-on-reproducibility] for details).
471
+
We can hence validate our regression approach and see if it is capable of correctly inferring the true causal effect.
472
+
@fig-rigour-on-reproducibility shows that the regression approach is capable of retrieving the correct result.
473
+
We deliberately chose a moderate sample size of `r nrow(df)` for our simulation.
474
+
Point estimates derived from the simulated data thus only approximate the theoretical values.
0 commit comments