- Home
- CRAN
**prodlim**: Product-Limit Estimation for Censored Event History Analysis**SimCompRisk**: Simulate competing risks data

# Simulate competing risks data

### Description

Simulate right censored competing risks data with two covariates X1 and X2. Both covariates have effect exp(1) on the hazards of event 1 and zero effect on the hazard of event 2.

### Usage

1 | ```
SimCompRisk(N, ...)
``` |

### Arguments

`N` |
sample size |

`...` |
do nothing. |

### Details

This function calls `crModel`

, then adds covariates and finally calls `sim.lvm`

.

### Value

data.frame with simulated data

### Author(s)

Thomas Alexander Gerds

### Examples

1 | ```
SimCompRisk(10)
``` |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.

- atRisk: Drawing numbers of subjects at-risk of experiencing an event...
- atRisk: Drawing numbers of subjects at-risk of experiencing an event...
- backGround: Background and grid color control.
- backGround: Background and grid color control.
- clusterTestData: Data set with a clustered data structure, for testing the...
- clusterTestData: Data set with a clustered data structure, for testing the...
- confInt: Add point-wise confidence limits to the graphs of...
- confInt: Add point-wise confidence limits to the graphs of...
- crModel: Competing risks model for simulation
- crModel: Competing risks model for simulation
- dimColor: Dim a given color to a specified density
- dimColor: Dim a given color to a specified density
- EventHistory.frame: Event history frame
- EventHistory.frame: Event history frame
- getEvent: Extract a column from an event history object.
- getEvent: Extract a column from an event history object.
- getStates: States of a multi-state model
- getStates: States of a multi-state model
- Hist: Create an event history response variable
- Hist: Create an event history response variable
- jackknife: Compute jackknife pseudo values.
- jackknife: Compute jackknife pseudo values.
- leaveOneOut: Compute jackknife pseudo values.
- leaveOneOut: Compute jackknife pseudo values.
- List2Matrix: Reduce list to a matrix or data.frame with names as new...
- markTime: Marking product-limit plots at the censored times.
- markTime: Marking product-limit plots at the censored times.
- meanNeighbors: Helper function to obtain running means for prodlim objects.
- meanNeighbors: Helper function to obtain running means for prodlim objects.
- model.design: Extract a design matrix and specials from a model.frame
- model.design: Extract a design matrix and specials from a model.frame
- neighborhood: Nearest neighborhoods for kernel smoothing
- neighborhood: Nearest neighborhoods for kernel smoothing
- parseSpecialNames: Parse special terms
- parseSpecialNames: Parse special terms
- PercentAxis: Percentage-labeled axis.
- PercentAxis: Percentage-labeled axis.
- plotCompetingRiskModel: Plotting a competing-risk-model.
- plotCompetingRiskModel: Plotting a competing-risk-model.
- plot.Hist: Box-arrow diagrams for multi-state models.
- plot.Hist: Box-arrow diagrams for multi-state models.
- plotIllnessDeathModel: Plotting an illness-death-model.
- plotIllnessDeathModel: Plotting an illness-death-model.
- plot.prodlim: Plotting event probabilities over time
- plot.prodlim: Plotting event probabilities over time
- predict.prodlim: Predicting event probabilities from product limit estimates
- predict.prodlim: Predicting event probabilities from product limit estimates
- predictSurvIndividual: Predict individual survival probabilities
- predictSurvIndividual: Predict individual survival probabilities
- print.prodlim: Print objects in the prodlim library
- print.prodlim: Print objects in the prodlim library
- prodlim: Functions for estimating probabilities from right censored...
- prodlim: Functions for estimating probabilities from right censored...
- quantile.prodlim: Quantiles for Kaplan-Meier and Aalen-Johansen estimates.
- redist: Calculation of Efron's re-distribution to the right algorithm...
- redist: Calculation of Efron's re-distribution to the right algorithm...
- row.match: Identifying rows in a matrix or data.frame
- row.match: Identifying rows in a matrix or data.frame
- SimCompRisk: Simulate competing risks data
- SimCompRisk: Simulate competing risks data
- SimSurv: Simulate survival data
- SimSurv: Simulate survival data
- sindex: Index for evaluation of step functions.
- sindex: Index for evaluation of step functions.
- SmartControl: Function to facilitate the control of arguments passed to...
- SmartControl: Function to facilitate the control of arguments passed to...
- stopTime: Stop the time of an event history object
- stopTime: Stop the time of an event history object
- strip.terms: Strip special functions from terms
- strip.terms: Strip special functions from terms
- summary.Hist: Summary of event histories
- summary.Hist: Summary of event histories
- summary.prodlim: Summary method for prodlim objects.
- summary.prodlim: Summary method for prodlim objects.
- survModel: Survival model for simulation
- survModel: Survival model for simulation