cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

Hazard ratio and 95% CI figures

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