This function performs the estimation of the parameters involved in a binomial distribution for a given data.
The estimation of the probability parameter is done by either maximum likelihood approach or method of moments due to the fact that both approaches give the same estimation,
$$p=sum(y)/(m*n),$$
where \(m\) is the number of trials and \(n\) is the number of observations.
If the dispersion parameter is included in the model, BIest
function performs its estimation by the method of moments or maximum quasi-likelihood methodology. The method of moments is based on the variance equation of a binomial distribution with dispersion parameter
$$Var[y]=phi*mp(1-p).$$
The maximum quasi-likelihood approach is based on the quadratic approximation of the log-likelihood function of a binomial distribution with dispersion parameter, where the unknown term involving \(phi\) is estimated with the deviance of the model.
The standard deviation of the estimated probability parameter is calculated by the Fisher information, i.e., the negative of the second derivative of the log-likelihood (log-quasi-likelihood) function.