Likelihood: An R6 class that defines a likelihood function to be used by...

LikelihoodR Documentation

An R6 class that defines a likelihood function to be used by a Calibrator object

Description

An R6 class that defines a likelihood function to be used by a Calibrator object

An R6 class that defines a likelihood function to be used by a Calibrator object

Details

Each likelihood object must provide a read-only active field name par specifying likelihood parameters, and function logL for log likelihood. These must be implemented by subclasses The log likelihood function.

Active bindings

par

return a vector of parameter names for this likelihood distribution

Methods

Public methods


Method logL()

Usage
Likelihood$logL(x, mean, ...)
Arguments
x

the observation to calculate the likelihood

mean

the mean of the likelihood distribution

...

other likelihood parameter values

Returns

a numeric value giving the likelihood.


Method clone()

The objects of this class are cloneable with this method.

Usage
Likelihood$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


junlingm/REpiSim documentation built on Nov. 28, 2023, 2:35 a.m.