BookmarkSubscribeRSS Feed
lisahoward
Calcite | Level 5

I am trying to create graph plotting incidence rate of headache at -30 day intervals prior to baseline date

I am unsure how to calculate the negative person time for each time point to create the rate.

My graph will have the following x and y axis -365-0 for the time points and rates per 1000.

rate per 1000
1
0.5
0
-365-330-300-270
timepoint

I have the following variables in my SAS dataset, Patient ID, baseline date (which will be represented be the 0 time point on my graph), headache (0/1), and headache date.  A patient can only have one headache max which is the earliest within the prior baseline 365 days.  Any help in calculating  the rate for each negative timepoint and then plotting it as a graph would be great.

Many thanks,

Lisa.

1 REPLY 1
djrisks
Barite | Level 11

Hi Lisa,

It's difficult for me to visualise your graph. Can you show an example of it please? Also please let us know the SAS Version you have and include an example of the dataset. It may also be better to post this question in the SAS/GRAPH and ODS Graphics community, if you haven't already.

Thank you.

Kriss

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1156 views
  • 0 likes
  • 2 in conversation