[R] Fitting Mixed Distributions in the fitdistrplus package

2020-10-24 Thread Christophe Dutang
gam, fpar, fmixgam)) > > -- Forwarded message - > From: Charles Thuo > Date: Wed, Oct 21, 2020 at 12:03 AM > Subject: [R] Fitting Mixed Distributions in the fitdistrplus package > To: > > > Dear Sirs, > > The below listed code fits a gamma and a p

Re: [R] Fitting Mixed Distributions in the fitdistrplus package

2020-10-22 Thread aBBy Spurdle , ⍺-Male
dmixgampar <- function (x, param1, param2, ...) { #compute density at x } On Wed, Oct 21, 2020 at 8:03 PM Charles Thuo wrote: > > Dear Sirs, > > The below listed code fits a gamma and a pareto distribution to a data set > danishuni. However the distributions are not appropriate

[R] Fitting Mixed Distributions in the fitdistrplus package

2020-10-21 Thread Charles Thuo
Dear Sirs, The below listed code fits a gamma and a pareto distribution to a data set danishuni. However the distributions are not appropriate to fit both tails of the data set hence a mixed distribution is required which has ben defined as "mixgampar" as shown below. library(fitdistrplus) x<-