Skip to content

Commit

Permalink
Update helper_output_print.R
Browse files Browse the repository at this point in the history
  • Loading branch information
JihoonChoi26 authored May 6, 2024
1 parent 98094e6 commit 0d4a5da
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions R/helper_output_print.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ output_print <- function(n_covariates,
if (index == "RIR"){
cat(crayon::bold("Robustness of Inference to Replacement (RIR):\n"))
if ((abs(est_eff) > abs(beta_threshhold)) & is.na(eff_thr) == TRUE) {
cat("TO INVALIDATE:\n")
cat("\n")
cat(paste0("RIR = ", round(recase, 3), "\n"))
cat("\n")
cat(paste0("The estimated effect is ", round(est_eff, 3), ". To invalidate the inference of an effect using"))
Expand All @@ -59,8 +57,6 @@ output_print <- function(n_covariates,
cat(paste0("with data points for which the effect is ", nu, " (RIR = ", round(recase, 3), ").\n"))
cat("\n")
} else if ((abs(est_eff) > abs(beta_threshhold)) & is.na(eff_thr) == FALSE) {
cat("TO INVALIDATE:\n")
cat("\n")
cat(paste0("RIR = ", round(recase, 3), "\n"))
cat("\n")
cat(paste0("The estimated effect is ", round(est_eff, 3), ", and specified threshold for inference is ", round(eff_thr, 3), "."))
Expand All @@ -74,8 +70,6 @@ output_print <- function(n_covariates,
cat(paste0("with data points for which the effect is ", nu, " (RIR = ", round(recase, 3), ").\n"))
cat("\n")
} else if ((abs(est_eff) < abs(beta_threshhold)) & is.na(eff_thr) == TRUE) {
cat("TO SUSTAIN:\n", sep = "")
cat("\n")
cat(paste0("RIR = ", round(recase, 3), "\n"))
cat("\n")
cat(paste0("The estimated effect is ", round(est_eff, 3), ". The threshold value for statistical significance"))
Expand All @@ -89,8 +83,6 @@ output_print <- function(n_covariates,
cat(paste0("points with effect of ", round(beta_threshhold, 3), " (RIR = ", round(recase, 3), ").\n"))
cat("\n")
} else if ((abs(est_eff) < abs(beta_threshhold)) & is.na(eff_thr) == FALSE) {
cat("TO SUSTAIN:\n", sep = "")
cat("\n")
cat(paste0("RIR = ", round(recase, 3), "\n"))
cat("\n")
cat(paste0("The estimated effect is ", round(est_eff, 3), ", and specified threshold for inference is ", round(eff_thr, 3), "."))
Expand Down

0 comments on commit 0d4a5da

Please sign in to comment.