@@ -12,12 +12,12 @@ output_print <- function(est_eff, beta_threshhold, bias = NULL, sustain = NULL,
12
12
cat(" \n " )
13
13
cat(paste0(" the inference of an effect using the threshold of " , round(beta_threshhold , 3 ), " for" ))
14
14
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" ))
16
16
cat(" \n " )
17
17
cat(paste0(" (" , round(est_eff , 3 ), " ) estimate would have to be due to bias. This implies" ))
18
18
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" ))
21
21
cat(" \n " )
22
22
cat(paste0(" treatment effect is " , nu , " (RIR = " , round(recase , 3 ), " ).\n " ))
23
23
cat(" \n " )
@@ -28,15 +28,15 @@ output_print <- function(est_eff, beta_threshhold, bias = NULL, sustain = NULL,
28
28
cat(" \n " )
29
29
cat(paste0(" You entered an effect of " , round(est_eff , 3 ), " , and specified a threshold" ))
30
30
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" ))
32
32
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" ))
34
34
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" ))
36
36
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" ) )
38
38
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 " ))
40
40
cat(" \n " )
41
41
} else if ((abs(est_eff ) < abs(beta_threshhold )) & is.na(eff_thr ) == TRUE ) {
42
42
cat(" TO SUSTAIN:\n " , sep = " " )
@@ -51,7 +51,7 @@ output_print <- function(est_eff, beta_threshhold, bias = NULL, sustain = NULL,
51
51
cat(" \n " )
52
52
cat(" bias. This implies that to sustain an inference one would expect to" )
53
53
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 " ))
55
55
cat(paste0(" cases with effect of " , round(beta_threshhold , 3 ), " (RIR = " , round(recase , 3 ), " ).\n " ))
56
56
cat(" \n " )
57
57
} else if ((abs(est_eff ) < abs(beta_threshhold )) & is.na(eff_thr ) == FALSE ) {
0 commit comments