Closed jgvw89 closed 4 years ago
The formula you have in the code is: if(CI) { lower <- Yhat + qnorm(.975)var upper <- Yhat - qnorm(.975)var
but confidence intervals should be calculated by multiplying qnorm(.975)*sqrt(var)
Sorry if this is the wrong forum for bringing this up.
You are correct! Eric, this is in phylopars_update.R, l.49
phylopars_update.R
Ah yes, thanks for catching this! The code has now been corrected (as of version 0.2.11)
The formula you have in the code is: if(CI) { lower <- Yhat + qnorm(.975)var upper <- Yhat - qnorm(.975)var
but confidence intervals should be calculated by multiplying qnorm(.975)*sqrt(var)
Sorry if this is the wrong forum for bringing this up.