Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about survival time data simulation methodology in examples #2

Open
shuhxi opened this issue Nov 20, 2024 · 0 comments
Open

Comments

@shuhxi
Copy link

shuhxi commented Nov 20, 2024

Hi, thanks for making this repo available with all the detailed examples! I noticed that in the simulation files in examples/data (e.g.Simulation_Linear/utils.py), the survival times $T_0$ and $T_1$ are generated as:

T0 = np.exp((np.dot(x2, gamma1.T) + np.dot(x1, gamma1.T)))
T1 = np.exp((np.dot(x2, gamma2.T) + np.dot(x1, gamma1.T)))

This approach seems to result in log-normally distributed $T_0$ and $T_1$. I'm curious about this since, in works like Alaa et al., 2017 (which is cited in the BITES paper), survival times are assumed to be exponentially distributed and sampled e.g. using np.random.exponential in pycox. Could you please clarify the reasoning behind this approach for generating survival times?

Thanks again for your great work!

@shuhxi shuhxi changed the title Question about data simulation methodology in examples Question about survival time data simulation methodology in examples Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant