compare_triangle_fit: Compare multiple triangle distributions fits

View source: R/fit-plots.R

compare_triangle_fitR Documentation

Compare multiple triangle distributions fits

Description

Compare multiple triangle distributions fits

Usage

compare_triangle_fit(
  y,
  cols = c("red", "blue", "green"),
  main = "Triangle Fit Comparison",
  ...
)

Arguments

y

the triangle distributed sample

cols

the colors of the CDF-based estimates, the maximum likelihood estimates, and the method of moments estimates

main

the plot title

...

other parameters passed to plot.ecdf

Examples

set.seed(10304)
xtest <- rtriangle(100, 1, 5, 2)
compare_triangle_fit(xtest)

triangle documentation built on Dec. 28, 2022, 2:09 a.m.