View source: R/iclogcondist_functions.R
neg_log_like | R Documentation |
This function computes the negative log-likelihood of an interval-censored model based on the specified parameterization.
neg_log_like(x, weight, li, ri, L_Rc, Lc_R, Lc_Rc, type = "", tau_no_Inf)
x |
A numeric vector of parameter estimates (can be in terms of |
weight |
A numeric vector of weights for the observations. |
li |
A numeric vector of indices corresponding to the left bounds of the intervals in |
ri |
A numeric vector of indices corresponding to the right bounds of the intervals in |
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 |
tau_no_Inf |
A numeric vector of unique time points excluding infinity. |
The negative log-likelihood value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.