ncoef in drawBPrior.r