<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://freemwiki.com/index.php?action=history&amp;feed=atom&amp;title=Openai%2F695f02d3-11f8-800e-993a-ad71db6d42aa</id>
	<title>Openai/695f02d3-11f8-800e-993a-ad71db6d42aa - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://freemwiki.com/index.php?action=history&amp;feed=atom&amp;title=Openai%2F695f02d3-11f8-800e-993a-ad71db6d42aa"/>
	<link rel="alternate" type="text/html" href="https://freemwiki.com/index.php?title=Openai/695f02d3-11f8-800e-993a-ad71db6d42aa&amp;action=history"/>
	<updated>2026-06-18T18:37:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://freemwiki.com/index.php?title=Openai/695f02d3-11f8-800e-993a-ad71db6d42aa&amp;diff=595446&amp;oldid=prev</id>
		<title>Lukegao: by freem.ai...</title>
		<link rel="alternate" type="text/html" href="https://freemwiki.com/index.php?title=Openai/695f02d3-11f8-800e-993a-ad71db6d42aa&amp;diff=595446&amp;oldid=prev"/>
		<updated>2026-01-10T06:11:14Z</updated>

		<summary type="html">&lt;p&gt;by freem.ai...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
{{DISPLAYTITLE:Hazard Ratio Calculation}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;This conversation was exported from ChatGPT&amp;#039;&amp;#039;&amp;lt;ref&amp;gt;{{cite web|title=Hazard Ratio Calculation|url=https://chatgpt.com/share/695f02d3-11f8-800e-993a-ad71db6d42aa|publisher=ChatGPT|access-date=2026-01-10}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== gpt-5-2 ==&lt;br /&gt;
=== User: How do you calculate the hazard ratio? ===&lt;br /&gt;
How do you calculate the hazard ratio? For instance, in the SLS Phase 3 regal trial, if you look at the November 14, 2022 press release, it says a hazard ratio of 0.636 would determine statistical efficacy. How is that 0.636 calculated?&lt;br /&gt;
&lt;br /&gt;
=== Assistant: Here’s a clear explanation of how a hazard ratio HR like 0.636 is calculated and what it means — especially in the cont… ===&lt;br /&gt;
Here’s a clear explanation of how a hazard ratio (HR) like 0.636 is calculated and what it means — especially in the context of a clinical trial such as the SLS Phase 3 REGAL trial.&lt;br /&gt;
&lt;br /&gt;
==== A hazard ratio compares the instantaneous risk of an event (e.g., death, progression, relapse) between two groups over time. It’s used in survival analysis and typically estimated using a statistical model such as the Cox proportional hazards model. Wikipedia&amp;lt;ref&amp;gt;{{cite web|title=Wikipedia|url=https://en.wikipedia.org/wiki/Hazard_ratio|publisher=en.wikipedia.org|access-date=2026-01-10}}&amp;lt;/ref&amp;gt; ====&lt;br /&gt;
* HR = 1.0 → no difference in hazard between groups&lt;br /&gt;
* HR &amp;lt; 1.0 → event occurs less often in the treatment group vs. control&lt;br /&gt;
* HR &amp;gt; 1.0 → event occurs more often in the treatment group vs. control Cancer.gov&amp;lt;ref&amp;gt;{{cite web|title=Cancer.gov|url=https://www.cancer.gov/publications/dictionaries/cancer-terms/def/hazard-ratio|publisher=cancer.gov|access-date=2026-01-10}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== In practice, hazard ratios are not computed by a simple ratio of two median survival times. Instead, they are estimated from time-to-event data across the entire follow-up period. ====&lt;br /&gt;
&lt;br /&gt;
===== If a Cox model is used (as in most Phase 3 oncology trials), it works like this: =====&lt;br /&gt;
# Define the hazard function At time ttt, the hazard is the instantaneous risk of the event happening at that time, given that the person has survived up to ttt. Wikipedia&amp;lt;ref&amp;gt;{{cite web|title=Wikipedia|url=https://en.wikipedia.org/wiki/Hazard_ratio|publisher=en.wikipedia.org|access-date=2026-01-10}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
# Model the log hazard as a linear function of treatment The model estimates a coefficient (β\betaβ) for the treatment effect.&lt;br /&gt;
# Exponentiate that coefficient The hazard ratio = eβe^{\beta}eβ. Easy Made Stat&amp;lt;ref&amp;gt;{{cite web|title=Easy Made Stat|url=https://help.easymedstat.com/support/solutions/articles/77000513111-how-to-calculate-hazard-ratios-hr-in-a-cox-model-|publisher=Easy Made Stat|access-date=2026-01-10}}&amp;lt;/ref&amp;gt; • If β\betaβ is negative → HR &amp;lt; 1 (treatment reduces risk) • If β\betaβ is positive → HR &amp;gt; 1 (treatment increases risk) This is how the HR comes out mathematically. &amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== In the REGAL trial context (from the November 14, 2022 press release): ====&lt;br /&gt;
* An HR of 0.636 means that, at any point in time, patients in the treatment arm (e.g., GPS) had about 36% lower hazard (instantaneous risk) of death than patients in the control arm (e.g., BAT).&lt;br /&gt;
* This is a relative measure over the entire follow-up period under the proportional hazards assumption (i.e., the ratio is constant over time). Wikipedia&amp;lt;ref&amp;gt;{{cite web|title=Wikipedia|url=https://en.wikipedia.org/wiki/Hazard_ratio|publisher=en.wikipedia.org|access-date=2026-01-10}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the trial planners prespecified that an HR ≤ 0.636 would be the threshold for demonstrating statistically significant improvement in overall survival (OS).&lt;br /&gt;
&lt;br /&gt;
==== While median survival times might be reported (e.g., OS ~12.6 vs. 8 months), the hazard ratio does not come directly from those medians. Rather: ====&lt;br /&gt;
* The Cox model uses all survival times and censoring information across both groups.&lt;br /&gt;
* The hazard ratio is an overall measure of relative risk over time, not a simple ratio of medians. wiki.socr.umich.edu&amp;lt;ref&amp;gt;{{cite web|title=wiki.socr.umich.edu|url=https://wiki.socr.umich.edu/index.php/SMHS_SurvivalAnalysis|publisher=wiki.socr.umich.edu|access-date=2026-01-10}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you do convert medians into an approximate HR under simple exponential assumptions, there are formulas — but this is not how the final HR is usually derived in modern trials.&lt;br /&gt;
&lt;br /&gt;
==== ✅ HR is a ratio of instantaneous event rates, not a ratio of survival probabilities at a fixed timepoint. Wikipedia&amp;lt;ref&amp;gt;{{cite web|title=Wikipedia|url=https://en.wikipedia.org/wiki/Hazard_ratio|publisher=en.wikipedia.org|access-date=2026-01-10}}&amp;lt;/ref&amp;gt; ====&lt;br /&gt;
✅ It’s estimated via a regression model (Cox model), usually by exponentiating the treatment coefficient β\betaβ. Easy Made Stat&amp;lt;ref&amp;gt;{{cite web|title=Easy Made Stat|url=https://help.easymedstat.com/support/solutions/articles/77000513111-how-to-calculate-hazard-ratios-hr-in-a-cox-model-|publisher=Easy Made Stat|access-date=2026-01-10}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
✅ HR &amp;lt; 1 indicates benefit for the treatment over control. Statistical Aid: A School of Statistics&amp;lt;ref&amp;gt;{{cite web|title=Statistical Aid: A School of Statistics|url=https://www.statisticalaid.com/hazard-ratio/|publisher=Statistical Aid: A School of Statistics|access-date=2026-01-10}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want, I can walk you through a numerical example — e.g., how the Cox model estimates β from a small dataset and turns that into an HR. Just let me know!&lt;br /&gt;
&lt;br /&gt;
=== Assistant: Great question — that highlighted sentence is getting at an approximation method that’s often used for trial design and… ===&lt;br /&gt;
Great question — that highlighted sentence is getting at an approximation method that’s often used for trial design and intuition, but not for the final regulatory analysis. Let’s unpack it cleanly.&lt;br /&gt;
&lt;br /&gt;
==== If you assume survival times follow an exponential distribution, then: ====&lt;br /&gt;
* The hazard rate (λ) is constant over time&lt;br /&gt;
* Survival function: S(t)=e−λtS(t) = e^{-\lambda t}S(t)=e−λt&lt;br /&gt;
&lt;br /&gt;
Under this assumption, the median survival time (m) satisfies:&lt;br /&gt;
&lt;br /&gt;
S(m)=0.5=e−λmS(m) = 0.5 = e^{-\lambda m}S(m)=0.5=e−λm&lt;br /&gt;
Solving:&lt;br /&gt;
&lt;br /&gt;
λ=ln⁡(2)m\lambda = \frac{\ln(2)}{m}λ=mln(2)​&lt;br /&gt;
&lt;br /&gt;
==== If both arms are exponential: ====&lt;br /&gt;
* Treatment hazard: λT=ln⁡(2)mT\lambda_T = \frac{\ln(2)}{m_T}λT​=mT​ln(2)​&lt;br /&gt;
* Control hazard: λC=ln⁡(2)mC\lambda_C = \frac{\ln(2)}{m_C}λC​=mC​ln(2)​&lt;br /&gt;
&lt;br /&gt;
The hazard ratio is:&lt;br /&gt;
&lt;br /&gt;
HR=λTλC=ln⁡(2)/mTln⁡(2)/mC=mCmTHR = \frac{\lambda_T}{\lambda_C}&lt;br /&gt;
     = \frac{\ln(2)/m_T}{\ln(2)/m_C}&lt;br /&gt;
     = \frac{m_C}{m_T}HR=λC​λT​​=ln(2)/mC​ln(2)/mT​​=mT​mC​​&lt;br /&gt;
===== : =====&lt;br /&gt;
&lt;br /&gt;
==== Suppose trial designers expect: ====&lt;br /&gt;
* Control median OS ≈ 8 months&lt;br /&gt;
* Treatment median OS ≈ 12.6 months&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
HR≈812.6=0.635HR \approx \frac{8}{12.6} = 0.635HR≈12.68​=0.635&lt;br /&gt;
➡️ That’s essentially 0.636&lt;br /&gt;
&lt;br /&gt;
So the 0.636 was not “measured” — it was reverse-engineered from an assumed survival improvement under exponential survival.&lt;br /&gt;
&lt;br /&gt;
==== ### ====&lt;br /&gt;
* Power calculations&lt;br /&gt;
* Event-number planning&lt;br /&gt;
* Sample size justification&lt;br /&gt;
* Prespecifying a clinically meaningful effect size&lt;br /&gt;
&lt;br /&gt;
Regulators and statisticians need one number that represents:&lt;br /&gt;
&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
HR is convenient because:&lt;br /&gt;
* It’s scale-free&lt;br /&gt;
* It works naturally with log-rank tests&lt;br /&gt;
* It maps directly to Cox models&lt;br /&gt;
&lt;br /&gt;
===== - Final hazard ratio reporting =====&lt;br /&gt;
* Efficacy determination&lt;br /&gt;
* Labeling claims&lt;br /&gt;
&lt;br /&gt;
Why? Because:&lt;br /&gt;
* Real survival curves are not exponential&lt;br /&gt;
* Hazards often change over time&lt;br /&gt;
* Crossing curves and delayed effects break the assumption&lt;br /&gt;
&lt;br /&gt;
The actual HR is estimated from:&lt;br /&gt;
* All patient-level time-to-event data&lt;br /&gt;
* Censoring&lt;br /&gt;
* The Cox proportional hazards model&lt;br /&gt;
&lt;br /&gt;
==== When the Nov 14, 2022 press release says: ====&lt;br /&gt;
&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
It means:&lt;br /&gt;
* Before the trial started, SELLAS assumed something like: - Control OS ≈ X - Treatment OS ≈ Y&lt;br /&gt;
* Those assumptions implied: HR=XY≈0.636HR = \frac{X}{Y} \approx 0.636HR=YX​≈0.636&lt;br /&gt;
* The trial was powered so that if the true HR ≤ 0.636, the log-rank test would reach statistical significance at the prespecified alpha.&lt;br /&gt;
&lt;br /&gt;
It does not mean:&lt;br /&gt;
* 0.636 came from interim data&lt;br /&gt;
* 0.636 was computed from medians&lt;br /&gt;
* 0.636 is a hard biological threshold&lt;br /&gt;
&lt;br /&gt;
==== : ====&lt;br /&gt;
&lt;br /&gt;
If you want, I can:&lt;br /&gt;
* Reconstruct the exact OS assumptions likely used in REGAL&lt;br /&gt;
* Show how many events were needed to detect HR = 0.636&lt;br /&gt;
* Explain how delayed immunotherapy effects can make median-based intuition misleading&lt;br /&gt;
&lt;br /&gt;
Just tell me where you want to go next.&lt;br /&gt;
&lt;br /&gt;
=== User: Explain how delayed immunotherapy effects can make median-based intuition misleading ===&lt;br /&gt;
Explain how delayed immunotherapy effects can make median-based intuition misleading&lt;br /&gt;
&lt;br /&gt;
=== Assistant: This is an important point for cancer vaccines and immunotherapies like GPS, and it’s where a lot of investors and even… ===&lt;br /&gt;
This is an important point for cancer vaccines and immunotherapies like GPS, and it’s where a lot of investors (and even clinicians) get tripped up.&lt;br /&gt;
&lt;br /&gt;
I’ll walk through it step-by-step and then tie it directly back to why medians can mislead you.&lt;br /&gt;
&lt;br /&gt;
==== 1️⃣ What “median-based intuition” assumes ====&lt;br /&gt;
&lt;br /&gt;
When people think:&lt;br /&gt;
&lt;br /&gt;
: “Treatment median OS is 12.6 months vs control 8 months — that’s a big win”&lt;br /&gt;
&lt;br /&gt;
they are implicitly assuming:&lt;br /&gt;
* The treatment effect starts immediately&lt;br /&gt;
* The hazard reduction is constant over time&lt;br /&gt;
* The survival curves separate early and stay separated&lt;br /&gt;
* The hazard ratio is roughly constant (proportional hazards)&lt;br /&gt;
&lt;br /&gt;
That mental model is basically an exponential survival world.&lt;br /&gt;
&lt;br /&gt;
This is often wrong for immunotherapy.&lt;br /&gt;
&lt;br /&gt;
==== 2️⃣ What delayed immunotherapy effects actually look like ====&lt;br /&gt;
&lt;br /&gt;
For cancer vaccines and immune-based therapies:&lt;br /&gt;
&lt;br /&gt;
===== Early period (first months) =====&lt;br /&gt;
* Immune system is still being primed&lt;br /&gt;
* Patients may progress or die at similar or even higher rates than control&lt;br /&gt;
* Survival curves often overlap or cross&lt;br /&gt;
&lt;br /&gt;
===== Later period =====&lt;br /&gt;
* A subset of patients mount a durable immune response&lt;br /&gt;
* Their risk of death drops substantially&lt;br /&gt;
* A long tail appears in the survival curve&lt;br /&gt;
&lt;br /&gt;
This produces:&lt;br /&gt;
* Non-proportional hazards&lt;br /&gt;
* A hazard ratio that changes over time&lt;br /&gt;
&lt;br /&gt;
==== 3️⃣ Why medians fail in this situation ====&lt;br /&gt;
&lt;br /&gt;
===== 🔴 Median OS only reflects the 50th percentile =====&lt;br /&gt;
&lt;br /&gt;
The median is the time when half the patients have died.&lt;br /&gt;
&lt;br /&gt;
If:&lt;br /&gt;
* Many early events happen before the immune benefit kicks in&lt;br /&gt;
* The benefit is concentrated in a subset of responders&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
* The median may move very little&lt;br /&gt;
* Even if long-term survival is meaningfully improved&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
* Control median OS = 8 months&lt;br /&gt;
* Treatment median OS = 9 months&lt;br /&gt;
&lt;br /&gt;
That looks unimpressive.&lt;br /&gt;
&lt;br /&gt;
But…&lt;br /&gt;
* 2-year OS: - Control = 5% - Treatment = 20%&lt;br /&gt;
&lt;br /&gt;
That is a huge clinical benefit — completely invisible at the median.&lt;br /&gt;
&lt;br /&gt;
==== 4️⃣ How this distorts “median → HR” intuition ====&lt;br /&gt;
&lt;br /&gt;
Recall the shortcut:&lt;br /&gt;
&lt;br /&gt;
HR≈mCmTHR \approx \frac{m_C}{m_T}HR≈mT​mC​​&lt;br /&gt;
This assumes:&lt;br /&gt;
* Constant hazard ratio&lt;br /&gt;
* No delayed effect&lt;br /&gt;
&lt;br /&gt;
But with immunotherapy:&lt;br /&gt;
* Early HR ≈ 1.0 or &amp;gt;1.0&lt;br /&gt;
* Late HR ≪ 1.0&lt;br /&gt;
* Overall HR is a weighted average across time&lt;br /&gt;
&lt;br /&gt;
So:&lt;br /&gt;
* Median OS might barely change&lt;br /&gt;
* Yet the true HR (from Cox/log-rank) can still be favorable&lt;br /&gt;
* Or the opposite can happen: median improves, but HR misses significance&lt;br /&gt;
&lt;br /&gt;
==== 5️⃣ Visual intuition (very important) ====&lt;br /&gt;
&lt;br /&gt;
===== Chemotherapy-like curves =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;Survival&lt;br /&gt;
|&lt;br /&gt;
|\&lt;br /&gt;
| \&lt;br /&gt;
|  \      Control&lt;br /&gt;
|   \____&lt;br /&gt;
|        \____ Treatment&lt;br /&gt;
+---------------------- Time&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Early separation&lt;br /&gt;
* Median shifts nicely&lt;br /&gt;
* HR ≈ median ratio&lt;br /&gt;
&lt;br /&gt;
===== Immunotherapy-like curves =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;Survival&lt;br /&gt;
|&lt;br /&gt;
|\&lt;br /&gt;
| \_____ Control&lt;br /&gt;
|   \&lt;br /&gt;
|    \______&lt;br /&gt;
|           \_____ Treatment (long tail)&lt;br /&gt;
+------------------------- Time&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Curves overlap early&lt;br /&gt;
* Separate late&lt;br /&gt;
* Median barely moves&lt;br /&gt;
* Tail drives benefit&lt;br /&gt;
&lt;br /&gt;
==== 6️⃣ Why this matters for statistical testing ====&lt;br /&gt;
&lt;br /&gt;
===== Cox model &amp;amp; log-rank test =====&lt;br /&gt;
* Assume proportional hazards&lt;br /&gt;
* Lose power when hazards are delayed&lt;br /&gt;
* Can underestimate benefit for immunotherapy&lt;br /&gt;
&lt;br /&gt;
This is why immunotherapy trials increasingly look at:&lt;br /&gt;
* Landmark survival (e.g., 12-, 18-, 24-month OS)&lt;br /&gt;
* Restricted mean survival time (RMST)&lt;br /&gt;
* Piecewise hazard ratios&lt;br /&gt;
* Milestone survival percentages&lt;br /&gt;
&lt;br /&gt;
==== 7️⃣ REGAL / GPS relevance (without speculating on results) ====&lt;br /&gt;
&lt;br /&gt;
For a WT1-targeted cancer vaccine like GPS:&lt;br /&gt;
* Mechanistically, benefit would not be immediate&lt;br /&gt;
* Immune priming + memory formation take time&lt;br /&gt;
* A subset of patients may derive durable benefit&lt;br /&gt;
&lt;br /&gt;
Therefore:&lt;br /&gt;
* Median OS may be a blunt instrument&lt;br /&gt;
* HR thresholds derived from medians (like 0.636) may misrepresent true benefit&lt;br /&gt;
* Long-term OS and tail separation are often more informative&lt;br /&gt;
&lt;br /&gt;
This is exactly the pattern historically seen with:&lt;br /&gt;
* Sipuleucel-T&lt;br /&gt;
* Checkpoint inhibitors (early days)&lt;br /&gt;
* Several cancer vaccine programs&lt;br /&gt;
&lt;br /&gt;
==== 8️⃣ One-sentence takeaway ====&lt;br /&gt;
&lt;br /&gt;
: Delayed immunotherapy effects shift benefit into the survival tail, where medians and median-derived intuition break down — making long-term survival metrics far more informative than early median OS.&lt;br /&gt;
&lt;br /&gt;
If you want, next we can:&lt;br /&gt;
* Quantify how much tail benefit is needed to “beat” a weak median&lt;br /&gt;
* Compare HR vs RMST numerically&lt;br /&gt;
* Walk through a toy dataset showing median ≈ unchanged but OS benefit is real&lt;br /&gt;
&lt;br /&gt;
Just say the word.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:ChatGPT Shares]]&lt;br /&gt;
[[Category:openai]]&lt;/div&gt;</summary>
		<author><name>Lukegao</name></author>
	</entry>
</feed>