GHMLE: Overall Survival GH model. Log likelihood and MLE for the GH...

View source: R/GHSurv.R

GHMLER Documentation

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

Description

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

Usage

GHMLE(
  init,
  times,
  status,
  hstr,
  des_t,
  des,
  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 (LNGH,LLGH,GGH,PGWGH,EWGH,GGGH)

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

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.