IT WOULD BE CLEARLY BENEFICIAL FOR YOU BY USING THE RMD FILES IN THE GITHUB DIRECTORY FOR FURTHER EXPLANATION OR UNDERSTANDING OF THE R CODE FOR THE RESULTS OBTAINED IN THE VIGNETTES.

Calculating Negative Log Likelihood values

All Binomial Mixture distributions and Alternate Binomial distributions have Negative Log Likelihood functions. Negative Log Likelihood value equations have been converted into functions. Using the Negative Log Likelihood values we can find the AIC(Akaike Information criteria), which is useful to compare fitted distributions for the same data-set.

It should be noted that the Negative Log Likelihood function for Uniform Binomial distribution is not considered, because it provides less variety of shape for Binomial Outcome data.

The functions are given below

  • Alternate Binomial Distribution
  1. NegLLAddBin
  2. NegLLBetaCorrBin
  3. NegLLCOMPBin
  4. NegLLCorrBin
  5. NegLLMultiBin
  6. NegLLLMBin
  • Binomial Mixture Distribution
  1. NegLLTriBin
  2. NegLLBetaBin
  3. NegLLKumBin
  4. NegLLGHGBB
  5. NegLLMcGBB
  6. NegLLGammaBin
  7. NegLLGrassiaIIBin

Below is an example of finding the Negative Log Likelihood value for Beta-Binomial distribution of Male_children data. Before that, I am going to estimate the parameters which minimize the Negative Log Likelihood value.

## Minimized Negative Log Likelihood value for Male_children data = 12492.87