fixed posterior calculation to be equal to prior when NAs are in beta or betahat