nbinom_est | R Documentation |
function to get the method of moment estimate(s) of negative binomial distribution
nbinom_est(
data,
size.known = FALSE,
size = NULL,
plot = TRUE,
curvecol = "red",
...
)
data |
A numeric vector. |
size.known |
logical indicating whether the size of the binomial distribution is known or not. |
size |
integer valued parameter of binomial distribution. |
plot |
logical which controls whether the barplot of the data along with the probability curve of the theoretical negative binomial distribution with the estimated parameters. |
curvecol |
color of the theoretical probability curve |
... |
additional plotting parameters |
the estimated parameters by the method of moments of the data assuming the underlying distribution is negative binomial distribution
nbinom_est(rnbinom(1000,size=5,prob=0.2),size.known=TRUE,size=5)#no of successes known
nbinom_est(rnbinom(1000,size=10,prob=0.6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.