cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

Hazard ratio and 95% CI figures

BagOfPossums4
Level I
I want to make a figure similar to the one attached. My data consists of person year, intake, adjusted hazard ratio and CI. Is it possible to create a figure using this data previously obtained? If so, how can I create it?
1 REPLY 1
Thierry_S
Super User

Re: Hazard ratio and 95% CI figures

Hi,

I had to extrapolate the format of your data table based on the limited information you provided.

Assuming that your table looks like the one attached, you can create the plot below by adding both the Lower CI and Upper CI values in the INTERVAL box and turning the Interval Style as BAND.

Graph Builder(
	Fit to Window( "Off" ),
	Graph Spacing( 5 ),
	Spacing Borders( 1 ),
	Variables(
		X( :"Age (Years)"n ),
		Y( :Adjusted Log Hazard Ratio ),
		Interval( :LOWER CI ),
		Interval( :UPPER CI )
	),
	Elements( Line( X, Y, Legend( 8 ), Interval Style( "Band" ) ) )
)

Thierry_S_0-1690039573220.png

Let me know if it works for you.

 

Best,

TS

Thierry R. Sornasse