Skip to main content

All Questions

Tagged with
2 votes
1 answer
286 views

Two-component Cox proportional hazards model Simulation

In an article that I have been reading, they have a simulation study: In this simulation, we generate $T_i$ from the following group-specific linear transformation model: $$H(T_i) = \beta_{k,1} X_{i,...
ADAM's user avatar
  • 741
0 votes
0 answers
36 views

Generate time-to-event data from a piecewise exponential model with a binary covariate? [duplicate]

How could I generate time-to-event data from a piecewise exponential model with a binary covariate in R? Could someone point me to some R packages and/or walk through how to code this from scratch?
Learner's user avatar
0 votes
1 answer
143 views

Simulating Time-Dependent Covariate and Applying coxph Function to Estimate Association Parameters

Let $T$ denote a failure time random variable drawn from a proportional hazards model with a time-invariant covariate $X\sim U(2, 7)$ and a time-varying covariate $Z(t) = kt$ for $k > 0$. Assuming ...
J McVittie's user avatar
2 votes
1 answer
111 views

Censoring proportions and covariate defining when simulating survival data using simsurv package in R

I'm trying to identify how the cox proportional hazards model behave with different censoring proportions and sample sizes. (Censoring proportions = 20%, 50%, 70%). For that I need to simulate ...
Nipuni Opatha's user avatar
0 votes
0 answers
21 views

Simulate competing risks

I am trying to simulate competing risks data for a power analysis. Based on historical data, we know that after 12 months: 40% had experienced the event of interest 20% had experienced the competing ...
LuckyPal's user avatar
  • 1,900
1 vote
1 answer
227 views

Simulating survival data to reflect existing complex dataset and censoring proportions

I am trying to compare the impact of different censoring proportions on different survival analysis models. For that, I plan to do a simulation study and then apply the best model on real-life child ...
Nipuni Opatha's user avatar
3 votes
1 answer
64 views

Does this approach to simulation for survival analysis, of breaking the analysis into deaths versus survivors, appear reasonable?

I've spent last several weeks learning about survival analysis, see one of the last posts at How to simulate variability (errors) in fitting a gamma model to survival data by using a generalized ...
Village.Idyot's user avatar
3 votes
1 answer
254 views

Generate survival data with functional data using R

I am reading this article here and trying to regenerate their simulation study. Here is this scenario here, among others, but if I can figure out one, the rest follow. That is, Simulation set-up we ...
ADAM's user avatar
  • 741
4 votes
1 answer
111 views

How to simulate variability (errors) in fitting a gamma model to survival data by using a generalized minimum extreme value distribution in R?

As shown below and per the R code at the bottom, I plot a base survival curve for the lung dataset from the survival package ...
Village.Idyot's user avatar
1 vote
1 answer
267 views

Correctly simulating an extreme value distribution for survival analysis?

In the image and per the code at the bottom of this post, I plot survival curves for the lung dataset from the survival package using a fitted exponential ...
Village.Idyot's user avatar
2 votes
1 answer
116 views

How to appropriately model the uncertainty of the exponential distribution model when running survival simulations?

In the code shown at the bottom of this post, I plot survival curves for the lung dataset from the survival package using a ...
Village.Idyot's user avatar
2 votes
2 answers
126 views

How to introduce uncertainty in fitting the original data when simulating survival curves?

The code below simulates the uncertainty in the lognormal distribution parameters, using the MASS::mvrnorm() function and the ...
Village.Idyot's user avatar
1 vote
1 answer
128 views

How to generate multiple forecast simulation paths for survival analysis?

I am trying to create R code for generating multiple simulation paths for forecasting survival probabilities. In the code posted at the bottom, I take the survival ...
Village.Idyot's user avatar
2 votes
2 answers
81 views

Is this an adequate example for simulation and modeling uncertainty in survival and hazard curve estimates?

I'm studying simulation and in particular uncertainty in survival curve estimates, by drawing from a distribution of parameters (for the Weibull distribution), using the variance-covariance matrix ...
Village.Idyot's user avatar
0 votes
1 answer
328 views

How to generate simulation paths for Weibull distribution in R?

I'm trying to generate simulation paths across time in R for survival and hazard functions using the Weibull distribution. Here are the steps I'm taking so far. I need direction because I'm not able ...
Village.Idyot's user avatar

15 30 50 per page