Deriving the first derivatives of the log likelihood function of the log-binomial model in bsw()
bsw()
Useful links