GEHMLE: Relative Survival GH model. Log likelihood and MLE for the GH...

View source: R/GHSurv.R

GEHMLER Documentation

Relative Survival GH model. Log likelihood and MLE for the GH excess hazards model. Baseline hazards: Lognormal, Log-logistic, Gamma, PGW, EW, GG

Description

Relative Survival GH model. Log likelihood and MLE for the GH excess hazards model. Baseline hazards: Lognormal, Log-logistic, Gamma, PGW, EW, GG

Usage

GEHMLE(
  init,
  times,
  status,
  hstr,
  des_t,
  des,
  hp.obs,
  method = "Nelder-Mead",
  maxit = 1000
)

Arguments

init

: initial points for optimisation

times

: survival times

status

: vital status (1 - dead, 0 - alive)

hstr

: hazard structure including baseline (LNGEH,LLGEH,GGEH,PGWGEH,EWGEH,GGGEH)

des_t

: design matrix for time-dependent effects (q x n), q >= 1

des

: design matrix for hazard-level effects (p x n), p >= 1

hp.obs

: population hazards (for uncensored individuals)

method:

"nlminb" or a method from "optim"

maxit:

The maximum number of iterations. Defaults to 1000

Value

a list containing the output of the optimisation (OPT) and the log-likelihood function (loglik)


FJRubio67/GHSurv documentation built on March 1, 2024, 5:17 a.m.