fun.opt | R Documentation |
This function computes the negative log-likelihood for a given set of parameters.
fun.opt(theta_h, x_cov, time, delta)
theta_h |
A numeric vector containing the initial iterant for the vector of parameters and the initial bandwidths. |
x_cov |
A matrix or data frame giving the covariate values. Each row represents an individual and each column corresponds to a variable. |
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. |
The value of the negative log-likelihood.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.