Skip to content
Prev 245679 / 398506 Next

Fitting a Triangular Distribution to Bivariate Data

On 2010-12-23 2:19, David Bapst wrote:
Hi,

you may try the following code:

 > library(triangle)
 > library(fitdistrplus)
 > summary(fitdist(y, "triangle", start = list(a = 1.9, b= 21.1, c = 11.5)))
Fitting of the distribution ' triangle ' by maximum likelihood
Parameters :
    estimate Std. Error
a -1.400007  2.3523724
b 23.627448  1.9804026
c 13.000000  0.1107073
Loglikelihood:  -62.41994   AIC:  130.8399   BIC:  133.8271
Correlation matrix:
             a           b           c
a  1.00000000 -0.14537297 -0.01203898
b -0.14537297  1.00000000 -0.01439500
c -0.01203898 -0.01439500  1.00000000

HTH ...

Jinsong Zhao