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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1316 views
  • 0 likes
  • 2 in conversation