# NOT RUN {
# Fitting a gamma distribution to the logarithm of variable Loss contained in
# the danishuni data set
library(fitdistrplus)
data(danishuni)
logLoss <- log(danishuni$Loss) # logarithm of Loss variable
logLoss <- logLoss[logLoss > 0] # observations > 0
gamma_fit(logLoss)
# }
Run the code above in your browser using DataLab