fun.opt: Objective function

View source: R/sicure.R

fun.optR Documentation

Objective function

Description

This function computes the negative log-likelihood for a given set of parameters.

Usage

fun.opt(theta_h, x_cov, time, delta)

Arguments

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.

Value

The value of the negative log-likelihood.


sicure documentation built on June 8, 2025, 11:33 a.m.

Related to fun.opt in sicure...