I have some data that I want to try fit a binomial distribution to. However, all the data for zero values is missing due to the data collection method.
Is there a function in R or MATLAB that can fit truncated binomial distributions?
For example,
If I had the following binomially distributed data:
data = binornd(10,0.1,1,10^5); and then removed all the zeros to get truncated.data= data(data~=0);
Is there a way to fit a binomial distribution to truncated.data that estimates the original binomial parameters n=10 and p=0.1?