neg.log.like: Negative log-likelihood

View source: R/time_utils.r

neg.log.likeR Documentation

Negative log-likelihood

Description

l(\lambda) = \log L(\lambda) = - \int_0^T\lambda(x) dx + \sum_{i=1}^n\log \lambda(x_i)

Usage

neg.log.like(params, data)

Arguments

params

A numeric vector of parameters of length = 4.

data

A numeric vector of event times.

Value

numeric.

Examples

neg.log.like(c(1,1,1,1),c(1,2,3,4,5,6))

mcavallaro/rancovr documentation built on April 17, 2025, 7:21 p.m.