
This is generic function for distribution objects. This function calculates the log-likelihood for the current parameters and xmin value.
dist_ll(m)# S4 method for conlnorm
dist_ll(m)
# S4 method for conexp
dist_ll(m)
# S4 method for conpl
dist_ll(m)
# S4 method for conweibull
dist_ll(m)
# S4 method for disexp
dist_ll(m)
# S4 method for dislnorm
dist_ll(m)
# S4 method for displ
dist_ll(m)
# S4 method for dispois
dist_ll(m)
The log-likelihood
a distribution object.
dist_cdf
, dist_pdf
and dist_rand
##########################################
#Load data and create distribution object#
##########################################
data(moby_sample)
m = displ$new(moby_sample)
m$setXmin(7); m$setPars(2)
##########################################
#Calculate the log-likelihood #
##########################################
dist_ll(m)
Run the code above in your browser using DataLab