neg_log_like: Compute the Negative Log-Likelihood for the Interval-Censored...

View source: R/iclogcondist_functions.R

neg_log_likeR Documentation

Compute the Negative Log-Likelihood for the Interval-Censored Model

Description

This function computes the negative log-likelihood of an interval-censored model based on the specified parameterization.

Usage

neg_log_like(x, weight, li, ri, L_Rc, Lc_R, Lc_Rc, type = "", tau_no_Inf)

Arguments

x

A numeric vector of parameter estimates (can be in terms of phi, or F).

weight

A numeric vector of weights for the observations.

li

A numeric vector of indices corresponding to the left bounds of the intervals in tau_no_Inf.

ri

A numeric vector of indices corresponding to the right bounds of the intervals in tau_no_Inf.

L_Rc

Indices of observations where the event is in the intersection of L group and the complement of R group. The L group consists of samples with left intervals time <= min(all right intervals time). The R group consists of samples with infinity right interval time.

Lc_R

Indices of observations where the event is in the intersection of the complement of L group and R group.

Lc_Rc

Indices of observations where the event is in the intersection of the complement of L group and the complement of R group.

type

A character string indicating the parameterization of x. Options are "phi" (log of F), or "F".

tau_no_Inf

A numeric vector of unique time points excluding infinity.

Value

The negative log-likelihood value.


iclogcondist documentation built on April 4, 2025, 5:18 a.m.