detectbound(distname, vstart, obs, fix.arg=NULL, echo=FALSE)
"name"
naming a distribution
for which the corresponding density function dname
must be classically defined. NULL
.detectbound
returns a 2-row matrix with the lower bounds in the first
row and the upper bounds in the second row.
Delignette-Muller ML and Dutang C (2015), fitdistrplus: An R Package for Fitting Distributions. Journal of Statistical Software, 64(4), 1-34.
fitdist
.
#case where the density returns a Not-an-Numeric value.
detectbound("exp", c(rate=3), 1:10)
detectbound("binom", c(size=3, prob=1/2), 1:10)
detectbound("nbinom", c(size=3, prob=1/2), 1:10)
Run the code above in your browser using DataLab