The log-likelihood function
Source:R/all_generics.R
, R/conlnorm.R
, R/def_conexp.R
, and 6 more
dist_ll-methods.Rd
This is generic function for distribution objects. This function calculates the log-likelihood for the current parameters and xmin value.
Usage
dist_ll(m)
# S4 method for class 'conlnorm'
dist_ll(m)
# S4 method for class 'conexp'
dist_ll(m)
# S4 method for class 'conpl'
dist_ll(m)
# S4 method for class 'conweibull'
dist_ll(m)
# S4 method for class 'disexp'
dist_ll(m)
# S4 method for class 'dislnorm'
dist_ll(m)
# S4 method for class 'displ'
dist_ll(m)
# S4 method for class 'dispois'
dist_ll(m)
Examples
##########################################
#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)
#> [1] -1328.11