Learn R Programming

depCensoring (version 0.1.7)

SurvMLE: Maximum likelihood estimator for a given parametric distribution

Description

Maximum likelihood estimator for a given parametric distribution

Usage

SurvMLE(
  yobs,
  delta,
  distribution,
  truncation = NULL,
  cure = FALSE,
  maxit = 300
)

Arguments

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.

maxit

a positive integer that denotes the maximum iteration number in optimization.