loglik.simcm {sicure} | R Documentation |
Logarithm of the likelihood of a single-index mixture cure model
Description
This function computes the logarithm of the likelihood of a single-index mixture cure model.
Usage
loglik.simcm(x, time, delta, logh1, logh2, logh3, logh4, r, k = 10)
Arguments
x |
A numeric vector giving the covariate values. |
time |
A numeric vector giving the observed times. |
delta |
A numeric vector giving the values of the uncensoring indicator, where 1 indicates that the event of interest has been observed and 0 indicates that the observation is censored. |
logh1 |
The logarithm of the bandwidth used to smooth the covariate in the nonparametric estimation of the probability of cure. |
logh2 |
The logarithm of the bandwidth used to smooth the covariate in the nonparametric estimation of the latency. |
logh3 |
The logarithm of the bandwidth used to smooth the time variable in the nonparametric estimation of the conditional density of susceptible individuals. |
logh4 |
The logarithm of the bandwidth used to smooth the covariate in the nonparametric estimation of the conditional density of susceptible individuals. |
r |
The radius of the moving window used to smooth the nonparametric estimation of the probability of cure. |
k |
The number of nearest neighbors used to smooth the nonparametric estimation of the conditional density of susceptible individuals. |
Value
A list with two components:
The value of the negative log-likelihood.
The
n
terms that contribute to the negative log-likelihood.