Learn R Programming

triangle (version 1.0)

triangle_mle: Maximum likelihood estimate of the triangle distribution parameters

Description

Maximum likelihood estimate of the triangle distribution parameters

Usage

triangle_mle(x, debug = FALSE, maxiter = 100)

Value

an object of S3 class triangle_mle containing a list with the call, coefficients, variance co-variance matrix, minimum negative log likelihood, details of the optimization number of observations, and the sample

Arguments

x

sample from a triangle distribution

debug

if TRUE then the function will check the input parameters

maxiter

the maximum number of cycles of optimization between maximizing a and b given c and maximizing c given a an b

References

Samuel Kotz and Johan Rene van Dorp. Beyond Beta tools:::Rd_expr_doi("10.1142/5720")

Examples

Run this code
xtest <- c(0.1, 0.25, 0.3, 0.4, 0.45, 0.6, 0.75, 0.8)
triangle_mle(xtest)

Run the code above in your browser using DataLab