<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Survival Analysis on ouR data generation</title>
    <link>https://www.rdatagen.net/tags/survival-analysis/</link>
    <description>Recent content in Survival Analysis on ouR data generation</description>
    <generator>Hugo</generator>
    <language>en</language>
    <managingEditor>keith.goldfeld@nyumc.org (Keith Goldfeld)</managingEditor>
    <webMaster>keith.goldfeld@nyumc.org (Keith Goldfeld)</webMaster>
    <lastBuildDate>Tue, 01 Apr 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.rdatagen.net/tags/survival-analysis/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Bayesian proportional hazards model for a stepped-wedge design</title>
      <link>https://www.rdatagen.net/post/2025-04-01-bayesian-proportional-hazards-model-for-a-stepped-wedge-design/</link>
      <pubDate>Tue, 01 Apr 2025 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2025-04-01-bayesian-proportional-hazards-model-for-a-stepped-wedge-design/</guid>
      <description>&lt;p&gt;We’ve finally reached the end of the road. This is the fifth and last post in a series building up to a Bayesian proportional hazards model for analyzing a stepped-wedge cluster-randomized trial. If you are just joining in, you may want to start at the &lt;a href=&#34;https://www.rdatagen.net/post/2025-02-11-estimating-a-bayesian-proportional-hazards-model/&#34; target=&#34;_blank&#34;&gt;beginning&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The model presented here integrates non-linear time trends and cluster-specific random effects—elements we’ve previously explored in isolation. There’s nothing fundamentally new in this post; it brings everything together. Given that the groundwork has already been laid, I’ll keep the commentary brief and focus on providing the code.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Bayesian proportional hazards model for a cluster randomized trial</title>
      <link>https://www.rdatagen.net/post/2025-03-25-a-bayesian-proportional-hazards-model-for-a-cluster-randomized-trial/</link>
      <pubDate>Tue, 25 Mar 2025 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2025-03-25-a-bayesian-proportional-hazards-model-for-a-cluster-randomized-trial/</guid>
      <description>&lt;p&gt;In recent posts, I &lt;a href=&#34;https://www.rdatagen.net/post/2025-02-11-estimating-a-bayesian-proportional-hazards-model/&#34; target=&#34;_blank&#34;&gt;introduced&lt;/a&gt; a Bayesian approach to proportional hazards modeling and then &lt;a href=&#34;https://www.rdatagen.net/post/2025-03-04-a-bayesian-proportional-hazards-model-with-splines/&#34; target=&#34;_blank&#34;&gt;extended&lt;/a&gt; it to incorporate a penalized spline. (There was also a third &lt;a href=&#34;https://www.rdatagen.net/post/2025-03-20-bayesian-survival-model-that-can-appropriately-handle-ties/&#34; target=&#34;_blank&#34;&gt;post&lt;/a&gt; on handling ties when multiple individuals share the same event time.) This post describes another extension: a random effect to account for clustering in a cluster randomized trial. With this in place, I’ll be ready to tackle the final step—building a model for analyzing a stepped-wedge cluster-randomized trial that incorporates both splines and site-specific random effects.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Accounting for ties in a Bayesian proportional hazards model</title>
      <link>https://www.rdatagen.net/post/2025-03-20-bayesian-survival-model-that-can-appropriately-handle-ties/</link>
      <pubDate>Thu, 20 Mar 2025 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2025-03-20-bayesian-survival-model-that-can-appropriately-handle-ties/</guid>
      <description>&lt;p&gt;Over my past few posts, I’ve been progressively building towards a Bayesian model for a stepped-wedge cluster randomized trial with a time-to-event outcome, where time will be modeled using a spline function. I started with a simple Cox proportional hazards model for a traditional RCT, ignoring time as a factor. In the next post, I introduced a nonlinear time effect. For the third post—one I initially thought was ready to publish—I extended the model to a cluster randomized trial without explicitly incorporating time. I was then working on the grand finale, the full model, when I ran into an issue: I couldn’t recover the effect-size parameter used to generate the data.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Bayesian proportional hazards model with a penalized spline</title>
      <link>https://www.rdatagen.net/post/2025-03-04-a-bayesian-proportional-hazards-model-with-splines/</link>
      <pubDate>Tue, 04 Mar 2025 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2025-03-04-a-bayesian-proportional-hazards-model-with-splines/</guid>
      <description>&lt;p&gt;In my previous &lt;a href=&#34;https://www.rdatagen.net/post/2025-02-11-estimating-a-bayesian-proportional-hazards-model/&#34; target=&#34;_blank&#34;&gt;post&lt;/a&gt;, I outlined a Bayesian approach to proportional hazards modeling. This post serves as an addendum, providing code to incorporate a spline to model a time-varying hazard ratio non linearly. In a second addendum to come I will present a separate model with a site-specific random effect, essential for a cluster-randomized trial. These components lay the groundwork for analyzing a stepped-wedge cluster-randomized trial, where both splines and site-specific random effects will be integrated into a single model. I plan on describing this comprehensive model in a final post.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Estimating a Bayesian proportional hazards model</title>
      <link>https://www.rdatagen.net/post/2025-02-11-estimating-a-bayesian-proportional-hazards-model/</link>
      <pubDate>Tue, 11 Feb 2025 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2025-02-11-estimating-a-bayesian-proportional-hazards-model/</guid>
      <description>&lt;p&gt;A recent conversation with a colleague about a large &lt;a href=&#34;https://www.rdatagen.net/post/2022-12-13-modeling-the-secular-trend-in-a-stepped-wedge-design/&#34; target=&#34;_blank&#34;&gt;stepped-wedge design&lt;/a&gt; (SW-CRT) cluster randomized trial piqued my interest, because the primary outcome is time-to-event. This is not something I’ve seen before. A quick dive into the literature suggested that time-to-event outcomes are uncommon in SW-CRTs-and that the best analytic approach is not obvious. I was intrigued by how to analyze the data to estimate a hazard ratio while accounting for clustering and potential secular trends that might influence the time to the event.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A demo of power estimation by simulation for a cluster randomized trial with a time-to-event outcome</title>
      <link>https://www.rdatagen.net/post/2023-05-23-just-a-simple-demo-power-estimates-for-cluster-randomized-trial-with-time-to-event-outcome/</link>
      <pubDate>Tue, 23 May 2023 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2023-05-23-just-a-simple-demo-power-estimates-for-cluster-randomized-trial-with-time-to-event-outcome/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/post/2023-05-23-just-a-simple-demo-power-estimates-for-cluster-randomized-trial-with-time-to-event-outcome/index.en_files/htmlwidgets/htmlwidgets.js&#34;&gt;&lt;/script&gt;&#xA;&lt;script src=&#34;https://www.rdatagen.net/post/2023-05-23-just-a-simple-demo-power-estimates-for-cluster-randomized-trial-with-time-to-event-outcome/index.en_files/plotly-binding/plotly.js&#34;&gt;&lt;/script&gt;&#xA;&lt;script src=&#34;https://www.rdatagen.net/post/2023-05-23-just-a-simple-demo-power-estimates-for-cluster-randomized-trial-with-time-to-event-outcome/index.en_files/typedarray/typedarray.min.js&#34;&gt;&lt;/script&gt;&#xA;&lt;script src=&#34;https://www.rdatagen.net/post/2023-05-23-just-a-simple-demo-power-estimates-for-cluster-randomized-trial-with-time-to-event-outcome/index.en_files/jquery/jquery.min.js&#34;&gt;&lt;/script&gt;&#xA;&lt;link href=&#34;https://www.rdatagen.net/post/2023-05-23-just-a-simple-demo-power-estimates-for-cluster-randomized-trial-with-time-to-event-outcome/index.en_files/crosstalk/css/crosstalk.min.css&#34; rel=&#34;stylesheet&#34; /&gt;&#xA;&lt;script src=&#34;https://www.rdatagen.net/post/2023-05-23-just-a-simple-demo-power-estimates-for-cluster-randomized-trial-with-time-to-event-outcome/index.en_files/crosstalk/js/crosstalk.min.js&#34;&gt;&lt;/script&gt;&#xA;&lt;link href=&#34;https://www.rdatagen.net/post/2023-05-23-just-a-simple-demo-power-estimates-for-cluster-randomized-trial-with-time-to-event-outcome/index.en_files/plotly-htmlwidgets-css/plotly-htmlwidgets.css&#34; rel=&#34;stylesheet&#34; /&gt;&#xA;&lt;script src=&#34;https://www.rdatagen.net/post/2023-05-23-just-a-simple-demo-power-estimates-for-cluster-randomized-trial-with-time-to-event-outcome/index.en_files/plotly-main/plotly-latest.min.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;A colleague reached out for help designing a cluster randomized trial to evaluate a clinical decision support tool for primary care physicians (PCPs), which aims to improve care for high-risk patients. The outcome will be a time-to-event measure, collected at the patient level. The unit of randomization will be the PCP, and one of the key design issues is settling on the number to randomize. Surprisingly, I’ve never been involved with a study that required a clustered survival analysis. So, this particular sample size calculation is new for me, which led to the development of simulations that I can share with you. (There are some analytic solutions to this problem, but there doesn’t seem to a consensus about the best approach to use.)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Simulating time-to-event outcomes with non-proportional hazards</title>
      <link>https://www.rdatagen.net/post/2022-03-29-simulating-non-proportional-hazards/</link>
      <pubDate>Tue, 29 Mar 2022 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2022-03-29-simulating-non-proportional-hazards/</guid>
      <description>&lt;p&gt;As I mentioned last &lt;a href=&#34;https://www.rdatagen.net/post/2022-03-15-adding-competing-risks-in-survival-data-generation/&#34;&gt;time&lt;/a&gt;, I am working on an update of &lt;code&gt;simstudy&lt;/code&gt; that will make generating survival/time-to-event data a bit more flexible. I previously presented the functionality related to &lt;a href=&#34;https://www.rdatagen.net/post/2022-03-15-adding-competing-risks-in-survival-data-generation/&#34;&gt;competing risks&lt;/a&gt;, and this time I’ll describe generating survival data that has time-dependent hazard ratios. (As I mentioned last time, if you want to try this at home, you will need the development version of &lt;code&gt;simstudy&lt;/code&gt; that you can install using &lt;strong&gt;devtools::install_github(“kgoldfeld/simstudy”)&lt;/strong&gt;.)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Adding competing risks in survival data generation</title>
      <link>https://www.rdatagen.net/post/2022-03-15-adding-competing-risks-in-survival-data-generation/</link>
      <pubDate>Tue, 15 Mar 2022 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2022-03-15-adding-competing-risks-in-survival-data-generation/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/post/2022-03-15-adding-competing-risks-in-survival-data-generation/index.en_files/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;I am working on an update of &lt;code&gt;simstudy&lt;/code&gt; that will make generating survival/time-to-event data a bit more flexible. There are two biggish enhancements. The first facilitates generation of competing events, and the second allows for the possibility of generating survival data that has time-dependent hazard ratios. This post focuses on the first enhancement, and a follow up will provide examples of the second. (If you want to try this at home, you will need the development version of &lt;code&gt;simstudy&lt;/code&gt;, which you can install using &lt;strong&gt;devtools::install_github(“kgoldfeld/simstudy”)&lt;/strong&gt;.)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Follow-up: simstudy function for generating parameters for survival distribution</title>
      <link>https://www.rdatagen.net/post/2022-02-22-follow-up-simstudy-function-for-generating-parameters-for-survival-distribution/</link>
      <pubDate>Tue, 22 Feb 2022 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2022-02-22-follow-up-simstudy-function-for-generating-parameters-for-survival-distribution/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/post/2022-02-22-follow-up-simstudy-function-for-generating-parameters-for-survival-distribution/index.en_files/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;In the &lt;a href=&#34;https://www.rdatagen.net/post/2022-02-08-simulating-survival-outcomes-setting-the-parameters-for-the-desired-distribution/&#34; target=&#34;_blank&#34;&gt;previous post&lt;/a&gt; I described how to determine the parameter values for generating a Weibull survival curve that reflects a desired distribution defined by two points along the curve. I went ahead and implemented these ideas in the development version of &lt;code&gt;simstudy 0.4.0.9000&lt;/code&gt;, expanding the idea to allow for any number of points rather than just two. This post provides a brief overview of the approach, the code, and a simple example using the parameters to generate simulated data.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Simulating survival outcomes: setting the parameters for the desired distribution</title>
      <link>https://www.rdatagen.net/post/2022-02-08-simulating-survival-outcomes-setting-the-parameters-for-the-desired-distribution/</link>
      <pubDate>Tue, 08 Feb 2022 00:00:00 +0000</pubDate><author>keith.goldfeld@nyumc.org (Keith Goldfeld)</author>
      <guid>https://www.rdatagen.net/post/2022-02-08-simulating-survival-outcomes-setting-the-parameters-for-the-desired-distribution/</guid>
      <description>&lt;script src=&#34;https://www.rdatagen.net/post/2022-02-08-simulating-survival-outcomes-setting-the-parameters-for-the-desired-distribution/index.en_files/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&lt;p&gt;The package &lt;code&gt;simstudy&lt;/code&gt; has some functions that facilitate generating survival data using an underlying Weibull distribution. Originally, I added this to the package because I thought it would be interesting to try to do, and I figured it would be useful for me someday (and hopefully some others, as well). Well, now I am working on a project that involves evaluating at least two survival-type processes that are occurring simultaneously. To get a handle on the analytic models we might use, I’ve started to try to simulate a simplified version of the data that we have.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
