Skip to content

Commit

Permalink
Update helper_output_print.R
Browse files Browse the repository at this point in the history
change cases -> data points
  • Loading branch information
JihoonChoi26 authored May 6, 2024
1 parent 7289564 commit c374913
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/helper_output_print.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ output_print <- function(n_covariates,
cat("\n")
cat(paste0("the inference one would expect to have to replace ", round(recase, 3), " (", round(bias, 3), "%) observations"))
cat("\n")
cat(paste0("with cases for which the effect is ", nu, " (RIR = ", round(recase, 3), ").\n"))
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")
Expand All @@ -71,7 +71,7 @@ output_print <- function(n_covariates,
cat("\n")
cat(paste0("the inference one would expect to have to replace ", round(recase, 3), " (", round(bias, 3), "%) observation"))
cat("\n")
cat(paste0("with cases for which the effect is ", nu, " (RIR = ", round(recase, 3), ").\n"))
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 = "")
Expand All @@ -84,9 +84,9 @@ output_print <- function(n_covariates,
cat("\n")
cat(paste0("would have to be due to bias. This implies to sustain an inference one would"))
cat("\n")
cat(paste0("expect to have to replace ", round(recase, 3), " (", round(sustain, 3), "%) observations with effect of ", nu, " with cases"))
cat(paste0("expect to have to replace ", round(recase, 3), " (", round(sustain, 3), "%) observations with effect of ", nu, " with data"))
cat("\n")
cat(paste0("with effect of ", round(beta_threshhold, 3), " (RIR = ", round(recase, 3), ").\n"))
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 = "")
Expand All @@ -99,9 +99,9 @@ output_print <- function(n_covariates,
cat("\n")
cat(paste0("to bias. This implies that to sustain an inference one would expect to have"))
cat("\n")
cat(paste0("to replace ", round(recase, 3), " (", round(sustain, 3), "%) observations with effect of ", nu, " with cases with effect"))
cat(paste0("to replace ", round(recase, 3), " (", round(sustain, 3), "%) observations with effect of ", nu, " with data points with"))
cat("\n")
cat(paste0("of ", round(beta_threshhold, 3), " (RIR = ", round(recase, 3), ").\n"))
cat(paste0("effect of ", round(beta_threshhold, 3), " (RIR = ", round(recase, 3), ").\n"))
cat("\n")
} else if (est_eff == beta_threshhold) {
warning("The coefficient is exactly equal to the threshold.\n")
Expand Down

0 comments on commit c374913

Please sign in to comment.