How to get parameter estimation r and p for Negative Binomial distribution using R?
1
0
Entering edit mode
3.2 years ago
bioinfo89 ▴ 60

Hi All,

I want to fit read count data to negative binomial distribution and estimate parameters using MLE method to get r=number of failures and p=prob of failures. I tried using fitdist function from fitdistrplus package, but I am unable to understand the estimated parameter size and mu if they are the same as r and p.

Has anyone used this function? Could you explain what does the estimated parameter mean? It is quite confusing to understand. Or suggest another function in R to do the same?

Any help will be much appreciated. Thank you!

R • 2.1k views
ADD COMMENT
0
Entering edit mode

May I ask for what type of data this is? There are already plenty of tools that make use of the NB, maybe there is one you can use out of the box.

ADD REPLY
0
Entering edit mode

I am using ChIAPET read count data.

ADD REPLY
0
Entering edit mode

I would first look into something like https://bioconductor.org/packages/release/bioc/html/diffHic.html rather than developing custom approaches. Or the software it is based on, edgeR.

ADD REPLY
0
Entering edit mode
3.2 years ago
Michael 55k

The R-packages fitdistr and fitdistrplus can do this.

ADD COMMENT
0
Entering edit mode

Yes, I tried this package, I am confused with the estimated parameters size specifically. I understood mu is the mean of failures (alternative parameterisation). But I am not sure what size mean. Is it number of successes or number of failures, equivalent to "r"?

ADD REPLY

Login before adding your answer.

Traffic: 1598 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6