I am trying to fit a log logistic curve to my set of data

> fll<-fitdist(AdjClaim_Size,"llogis")
> summary(fll)
Fitting of the distribution ' llogis ' by maximum likelihood 
Parameters : 
          estimate   Std. Error
shape    0.7904160   0.04786716
scale 1870.6747498 269.22215682

Do I use the below:?


But it gives me "inf"...What am I doing wrong?

I guess what I am trying to do is to estimate the parameters of a fitted curve, and based on the parameters, calculate E(X)

  • $\begingroup$ 1. Not all log-logistic distributions have a mean; if you're using functions all with the same parameterization as Wikipedia, then shape<1 will do that; you need to make your parameterizations explicit (and check they're the same for all your functions) 2. You're using packages / functions you haven't specified so it's not possible to tell what this is actually doing (are you using the package actuar maybe?). Please include a minimal reproducible example. ... ctd $\endgroup$
    – Glen_b
    Apr 17, 2019 at 1:35
  • $\begingroup$ ctd ... - also see here 3. Note the help center in relation to programming. Your question should be framed as one about statistics, rather than "what's wrong with my code" (typically, if the question wouldn't change if you changed what language you used, it's more likely to be on-topic) $\endgroup$
    – Glen_b
    Apr 17, 2019 at 2:50
  • $\begingroup$ Thaks Glen_b, I have included the packages... $\endgroup$
    – by79
    Apr 17, 2019 at 8:27

1 Answer 1


Yes, the parameterization in the *llogis functions in actuar (see the help on dllogis) is the same as on Wikipedia, but it uses different symbols for the shape and scale).

Not all log-logistic distributions have a mean; if the shape parameter (in that parameterization) is $\leq 1$ then the log-logistic does not have a finite mean.

This is the case for your estimates; the shape is 0.79, which is indeed less than 1. There's nothing to be done; the fitted distribution doesn't have a finite mean.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.