I have an expression data. My hypothesis is that it is a combination of two models, negative binomial(NB) and Poisson. Currently, I'd like to do a simulation. Firstly I want to estimate the parameters of NB and Poisson using MLE in r. But I don't know how to create a negative log-likelihood function for two distribution. Anyone can help me?