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

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

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