simMEGH_t: Function to simulate times to event from a model with MEGH...

View source: R/routines.R

simMEGH_tR Documentation

Function to simulate times to event from a model with MEGH structure and Student-t random effects

Description

Function to simulate times to event from a model with MEGH structure and Student-t random effects

Usage

simMEGH_t(
  seed,
  des = NULL,
  des_t = NULL,
  ID,
  alpha,
  beta,
  theta,
  sigma,
  nu,
  cens,
  restr,
  distr
)

Arguments

seed

: seed for simulation

des

: Design matrix

des_t

: Design matrix for time-dependent effects

ID

: Individual identifiers

beta

: regression parameters multiplying the hazard

sigma

: Standard deviation of the random effects

nu

: degrees of freedom

cens

: Censoring times

restr

: random effects structure ("I", "II" or "III")

distr

: baseline hazard distribution ("LN", "LL", "PGW" or "gamma")

theta:

parameters of the baseline hazard

n

: sample size

Value

a list containing the survival times, vital status, and ID


FJRubio67/MEGH documentation built on Jan. 29, 2024, 11:30 a.m.