-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
bugSomething isn't workingSomething isn't working
Description
The R winner's curse correction uses the below function:
bias <- function(betaTrue, betaObs, se){
z <- betaTrue / se
num <- dnorm(z - c) - dnorm(-z - c)
den <- pnorm(z - c) + pnorm(-z - c)
return(betaObs - betaTrue + se * num / den)
}
The below line is meant to return the bias.
return(betaObs - betaTrue + se * num / den)
But there is a typo. It shoudl really be:
return(betaObs - betaTrue - se * num / den)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working