Learn R Programming

poweRlaw (version 0.20.3)

dist_ll: The log-likelihood function

Description

This is generic function for distribution objects. This function calculates the log-likelihood for the current parameters and xmin value.

Usage

dist_ll(m)

## S3 method for class 'conexp': dist_ll(m)

## S3 method for class 'conlnorm': dist_ll(m)

## S3 method for class 'conpl': dist_ll(m)

## S3 method for class 'disexp': dist_ll(m)

## S3 method for class 'dislnorm': dist_ll(m)

## S3 method for class 'displ': dist_ll(m)

## S3 method for class 'dispois': dist_ll(m)

Arguments

Value

The log-likelihood

docType

methods

See Also

dist_cdf, dist_pdf and dist_rand

Examples

Run this code
##########################################
#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