negLL_function: Gompertz Negative Log Likelihood Function

View source: R/negLL_function.R

negLL_functionR Documentation

Gompertz Negative Log Likelihood Function

Description

Computes negative log likelihood for optimizer

Usage

negLL_function(par, y, X, y.left, y.right, wt)

Arguments

par

a vector of parameter estimates

y

a vector of death ages

X

a model matrix

y.left

left truncation age

y.right

right truncation age

wt

weight

Value

The negative log likelihood of parameter estimates given observed data


caseybreen/gompertztrunc documentation built on March 3, 2024, 1:32 p.m.