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

View source: R/routines.R

simMEGH_TPNR Documentation

Function to simulate times to event from a model with MEGH structure and twopiece normal random effects

Description

Function to simulate times to event from a model with MEGH structure and twopiece normal random effects

Usage

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

Arguments

seed

: seed for simulation

des

: Design matrix for hazard-level effects

des_t

: Design matrix for time-dependent effects

ID

: Individual identifiers

beta

: regression parameters multiplying the hazard

theta

: parameters of the baseline hazard

sigma

: Standard deviation of the random effects

skew

: skewness parameter (eps parameterisation) of the random effects

cens

: Censoring times

restr

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

distr

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

n

: sample size

Value

list of survival times, vital status, and ID.


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