SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
kalbo
Obsidian | Level 7

Hi all, I need to add the calculated Risk Difference to listings of preferred terms for a trial. There are 2 arms: dose and placebo.

 

Per FDA standards, I would like to add risk difference with 95% confidence intervals. This can be added to either the AE data set, or to the proc report.

 

prefterm             dose      placebo  riskdifference

Cold                       3            2

Flu                          2             1

Headache             1             3

3 REPLIES 3
sbxkoenk
SAS Super FREQ

You need to specify the RISKDIFF option in PROC FREQ.

The FREQ Procedure

kalbo
Obsidian | Level 7

Thanks for your reply. Do you know how data should be structured before using proc freq?

sbxkoenk
SAS Super FREQ

See documentation : 

SAS Help Center: Inputting Frequency Counts

 

PROC FREQ can use either raw data or cell count data to produce frequency and crosstabulation tables. Raw data, also known as case-record data, report the data as one record for each subject or sample member. Cell count data report the data as a table, listing all possible combinations of data values along with the frequency counts.

 

The statistics for contingency tables include the following:

  • chi-square tests and measures

  • measures of association

  • risks (binomial proportions) and risk differences for 2 x 2 - tables 

  • odds ratios and relative risks for 2 x 2 - tables

  • tests for trend

  • tests and measures of agreement

  • Cochran-Mantel-Haenszel statistics

Ciao, Koen

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 808 views
  • 0 likes
  • 2 in conversation