Learn R Programming

depCensoring (version 0.1.7)

SurvMLE.Likelihood: Likelihood for a given parametric distribution

Description

Likelihood for a given parametric distribution

Usage

SurvMLE.Likelihood(
  param,
  yobs,
  delta,
  distribution,
  truncation = NULL,
  cure = FALSE
)

Arguments

param

a vector contains all parametric parameters.

yobs

a numeric vector that indicated the observed survival times.

delta

a numeric vector that stores the right-censoring indicators.

distribution

the specified distribution function.

truncation

a positive numeric value thats denotes the value of truncation for the assumed distribution.

cure

a logical value that indicates whether the existence of a cured fraction should be considered.