Description Usage Arguments Author(s) Examples
Simulates current status data from a Cox-PH model with a gamma baseline distribution. Used for demonstration of use of logconcave function.
1 | simPH_Censored(n = 100, b1 = 0.5, b2 = -0.5, shape = 2)
|
n |
Number of samples simulated |
b1 |
Value of first regression coefficient |
b2 |
Value of second regression coefficient |
shape |
Shape parameter of baseline gamma distribution |
Clifford Anderson-Bergman
1 2 3 4 5 | simData <- simPH_Censored()
# Simulates censored data from a Cox-PH model
fit <- logconcave(times = simData$times, covariates = simData$x)
# Fits a Cox-PH model with a logconcave baseline distribution
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.