BookmarkSubscribeRSS Feed
nguyek13
Calcite | Level 5

I'm having trouble making this information into SAS code but have no clue how to start? And was seeing if there is any possible way to get the mean and standard deviation for it as well? Would I have to enter the data individually in order to get each cell? 

 

Table 1: Baseline characteristics of study of participants and the total usage of aspirin.

 

Use of Aspirin

Characteristics

Number Participants

% total use of aspirin (% CI)

Age Group

 

 

     18 – 64

6,181

65.9

     65

11,803

75.0

Gender

 

 

     Male

8518

76.2

     Female

9466

64.4

Race/Ethnicity

 

 

     White

14,595

73

     Black

1,889

63

     Hispanic

398

55.6

     Other

1,102

64.7

 

Note: Chi-square tests will be used for categorical variables (indicated with a % in the table). 

1 REPLY 1
Reeza
Super User
You’re trying to read that information into SAS data set? It’s possible, but manual is probably easier. Or paste into Excel and import via proc import.

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