np_nll: Marginal log likelihood function of the nonparametric...

View source: R/nonparametric.R

np_nllR Documentation

Marginal log likelihood function of the nonparametric multinomial with censoring and truncation

Description

Marginal log likelihood function of the nonparametric multinomial with censoring and truncation

Usage

np_nll(par, cens_lb, cens_ub, trunc_lb, trunc_ub, cens, trunc, weights)

Arguments

par

vector of D-1 parameters

cens_lb

index of interval in which death occurs

cens_ub

index of interval in which death occurs (if death is observed), or else the largest interval.

trunc_lb

vector of largest index for the lower truncation

trunc_ub

vector of smallest index for the upper truncation

Value

a scalar, the negative log likelihood value


longevity documentation built on Nov. 12, 2023, 5:07 p.m.