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 63da67e commit 1231b93
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 @@ -116,7 +116,7 @@ test_sensitivity <- function(est_eff,

## error message when eff_thr == 0
if (beta_threshold == 0 & index == "RIR") {
stop("The condition you specified implies a threshold of 0. Therefore, 100% of the data points would have to be replaced with data points with an effect of 0 to reduce the estimate to 0. If you would like to use a threshold based on statistical significance for a null hypothesis of 0 then do not specify an eff_thr value but instead specify nu value.")
stop("The condition you specified implies a threshold of 0. Therefore, 100% of the\n data points would have to be replaced with data points with an effect of 0\n to reduce the estimate to 0. If you would like to use a threshold based on\n statistical significance for a null hypothesis of 0 then do not specify an\n eff_thr value but instead specify nu value.")
}

## error message when est_eff == 0
Expand Down

0 comments on commit 1231b93

Please sign in to comment.