Skip to content

Commit 1f863d1

Browse files
authored
Update helper_output_print.R
1 parent 3d6a5e6 commit 1f863d1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

R/helper_output_print.R

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ output_print <- function(est_eff, beta_threshhold, bias = NULL, sustain = NULL,
1212
cat("\n")
1313
cat(paste0("the inference of an effect using the threshold of ", round(beta_threshhold, 3), " for"))
1414
cat("\n")
15-
cat(paste0("statistical significance with alpha = ", alpha, " ,", round(bias, 3), "% of the"))
15+
cat(paste0("statistical significance with alpha = ", alpha, ", ", round(bias, 3), "% of the"))
1616
cat("\n")
1717
cat(paste0("(", round(est_eff, 3), ") estimate would have to be due to bias. This implies"))
1818
cat("\n")
19-
cat("that to invalidate the inference one would expect to have to replace\n")
20-
cat(paste0("replace ", round(recase, 3), "(", round(bias, 3), "%) observations with cases for which the"))
19+
cat("that to invalidate the inference one would expect to have to\n")
20+
cat(paste0("replace ", round(recase, 3), " (", round(bias, 3), "%) observations with cases for which the"))
2121
cat("\n")
2222
cat(paste0("treatment effect is ", nu, " (RIR = ", round(recase, 3), ").\n"))
2323
cat("\n")
@@ -28,15 +28,15 @@ output_print <- function(est_eff, beta_threshhold, bias = NULL, sustain = NULL,
2828
cat("\n")
2929
cat(paste0("You entered an effect of ", round(est_eff, 3), ", and specified a threshold"))
3030
cat("\n")
31-
cat(paste0("for inference of ", round(eff_thr, 3), ". To invalidate the inference based on your estimate"))
31+
cat(paste0("for inference of ", round(eff_thr, 3), ". To invalidate the inference based on your"))
3232
cat("\n")
33-
cat(paste0(round(bias, 3), " % of the (", round(est_eff, 3), ") estimate would have to be due to bias."))
33+
cat(paste0("estimate, ", round(bias, 3), " % of the (", round(est_eff, 3), ") estimate would have to be due to"))
3434
cat("\n")
35-
cat(paste0("This implies that to invalidate the inference one would expect"))
35+
cat(paste0("bias. This implies that to invalidate the inference one would"))
3636
cat("\n")
37-
cat("to have to replace", round(recase, 3), "(", round(bias, 3), "%) observations with cases")
37+
cat(paste0("expect to have to replace", round(recase, 3), "(", round(bias, 3), "%) observations with"))
3838
cat("\n")
39-
cat(paste0("for which the treatment effect is ", nu, " (RIR = ", round(recase, 3), ").\n"))
39+
cat(paste0("cases for which the treatment effect is ", nu, " (RIR = ", round(recase, 3), ").\n"))
4040
cat("\n")
4141
} else if ((abs(est_eff) < abs(beta_threshhold)) & is.na(eff_thr) == TRUE) {
4242
cat("TO SUSTAIN:\n", sep = "")
@@ -51,7 +51,7 @@ output_print <- function(est_eff, beta_threshhold, bias = NULL, sustain = NULL,
5151
cat("\n")
5252
cat("bias. This implies that to sustain an inference one would expect to")
5353
cat("\n")
54-
cat(paste0("have to replace ", round(recase, 3), "(", round(sustain, 3), "%) observations with effect of ", nu, " with\n"))
54+
cat(paste0("have to replace ", round(recase, 3), " (", round(sustain, 3), "%) observations with effect of ", nu, " with\n"))
5555
cat(paste0("cases with effect of ", round(beta_threshhold, 3), " (RIR = ", round(recase, 3), ").\n"))
5656
cat("\n")
5757
} else if ((abs(est_eff) < abs(beta_threshhold)) & is.na(eff_thr) == FALSE) {

0 commit comments

Comments
 (0)