powered by
Triangle parameter estimates using a non-linear fit of the empirical CDF
triangle_cdfe(x, control = stats::nls.control(maxiter = 100, warnOnly = TRUE))
an object of class nls
nls
the triangle distributed sample
an object created by stats::nls.control
stats::nls.control
set.seed(10304) xtest <- rtriangle(100, 1, 5, 2) cdfe <- triangle_cdfe(xtest) print(cdfe) summary(cdfe) coef(cdfe) if (FALSE) { confint(cdfe) }
Run the code above in your browser using DataLab