Skip to content

Commit

Permalink
upper bound was inclusive - changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-rast committed Jun 20, 2024
1 parent b2ec4db commit 5046d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ compare_predict_helper <- function(x, ci_width){
## Solution: limit user input to [0,0.5]

delta_solve = function(x){
if(x <= 0 || x >= sqrt(1/8) ) stop("Error: \nPrior_sd must be between 0 and sqrt(1/8) approx. 0.353, to ensure that delta is not less than 1.\nFor delta = 1, set prior_sd to sqrt(1/8)\nFor delta = 2, set prior_sd to sqrt(1/12).")
if(x <= 0 || x > sqrt(1/8) ) stop("Error: \nPrior_sd must be between 0 and sqrt(1/8) approx. 0.353, to ensure that delta is not less than 1.\nFor delta = 1, set prior_sd to sqrt(1/8)\nFor delta = 2, set prior_sd to sqrt(1/12).")
(1/(2*x))^2 - 1
}

Expand Down

0 comments on commit 5046d20

Please sign in to comment.