simClaytonOakes: Simulate from the Clayton-Oakes frailty model

View source: R/sim.clayton.oakes.R

simClaytonOakesR Documentation

Simulate from the Clayton-Oakes frailty model

Description

Simulate observations from the Clayton-Oakes copula model with piecewise constant marginals.

Usage

simClaytonOakes(
  K,
  n,
  eta,
  beta,
  stoptime,
  lam = 1,
  left = 0,
  pairleft = 0,
  trunc.prob = 0.5,
  same = 0
)

Arguments

K

Number of clusters

n

Number of observations in each cluster

eta

variance

beta

Effect (log hazard ratio) of covariate

stoptime

Stopping time

lam

constant hazard

left

Left truncation

pairleft

pairwise (1) left truncation or individual (0)

trunc.prob

Truncation probability

same

if 1 then left-truncation is same also for univariate truncation

Author(s)

Thomas Scheike and Klaus K. Holst


mets documentation built on May 29, 2024, 3:51 a.m.