BookmarkSubscribeRSS Feed
MrsM
Calcite | Level 5

Hello,

 

what codes should I use for this?

 

Develop a 95% confidence interval for the difference in the average cholesterol level 2 days after the heart attack compared to the control group.

Some of the variables in the data set are :  twoday and control.... 

1 REPLY 1
PaigeMiller
Diamond | Level 26

Here's an example:

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=statug&docsetTarget=statu...

 

For this to work, you will have to re-arrange your data so that instead of a column for twoday and another column for control, both cholesterol readings are in the same column, and an ID column exists indicating TWODAY or CONTROL.

--
Paige Miller

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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
  • 1 reply
  • 974 views
  • 0 likes
  • 2 in conversation