Learn R Programming

triangle (version 1.0)

triangle_cdfe: Triangle parameter estimates using a non-linear fit of the empirical CDF

Description

Triangle parameter estimates using a non-linear fit of the empirical CDF

Usage

triangle_cdfe(x, control = stats::nls.control(maxiter = 100, warnOnly = TRUE))

Value

an object of class nls

Arguments

x

the triangle distributed sample

control

an object created by stats::nls.control

Examples

Run this code
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