powered by
Compare multiple triangle distributions fits
compare_triangle_fit( y, cols = c("red", "blue", "green"), main = "Triangle Fit Comparison", ... )
the triangle distributed sample
the colors of the CDF-based estimates, the maximum likelihood estimates, and the method of moments estimates
the plot title
other parameters passed to plot.ecdf
plot.ecdf
set.seed(10304) xtest <- rtriangle(100, 1, 5, 2) compare_triangle_fit(xtest)
Run the code above in your browser using DataLab