loglikhd: Negative log likelihood for a dataset of interval-censored...

Description Usage Arguments Details Value

View source: R/dic.fit.R

Description

Negative log likelihood for a dataset of interval-censored data, given a distribution and its parameters.

Usage

1
loglikhd(pars, dat, dist)

Arguments

pars

vector of the transformed (estimation scale) parameters

dat

a dataset, as in dic.fit

dist

a distribution, as in dic.fit

Details

This package uses two versions of each parameter, the estimation scale, or the scale that is used for numerical optimization, and the reporting scale, or the natural scale of the parameters. For all likelihood calculations, this loglikhd function expects parameters that are on the estimation scale, i.e. have range (-∞, ∞). Specifically, this translates into all parameters for all distributions being log-transformed except for the meanlog (i.e. "par1") for the log-normal distribution.

Value

negative log-likelihood for a given dataset, parameters, and distribution.


coarseDataTools documentation built on Dec. 11, 2021, 9:29 a.m.