Skip to content

Commit

Permalink
Update test_sensitivity.R
Browse files Browse the repository at this point in the history
  • Loading branch information
JihoonChoi26 committed May 20, 2024
1 parent 83bb6d5 commit 1909f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/test_sensitivity.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ test_sensitivity <- function(est_eff,

## error message when eff_thr and beta_threshold are at two sides of zero
if (est_eff * beta_threshold < 0 & index == "RIR") {
stop(sprintf("The condition you specified implies a threshold of %.3f. Cannot calculate RIR because replacement values would need to be arbitrarily more extreme than the threshold (%.3f) to achieve the threshold value. Consider using ITCV.",
stop(sprintf("The condition you specified implies a threshold of %.3f. Cannot calculate RIR\n because replacement values would need to be arbitrarily more extreme than the\n threshold (%.3f) to achieve the threshold value. Consider using ITCV.",
beta_threshold, beta_threshold))
}

Expand Down

0 comments on commit 1909f20

Please sign in to comment.