BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
nikky
Fluorite | Level 6

I will like to calculate average GPA(numerical variable) for seat locations(categorical variable).

 

How can i set this up in SAS. Am making use of an imported data.

1 ACCEPTED SOLUTION

Accepted Solutions
novinosrin
Tourmaline | Level 20

Hello @nikky  Do you have a imported SAS dataset?

 

If yes, 

1. Have you looked at descriptive stats procedures like proc summary,means etc?

2. If you want SQL, have you looked at functions like mean/avg ?

 

 

View solution in original post

2 REPLIES 2
novinosrin
Tourmaline | Level 20

Hello @nikky  Do you have a imported SAS dataset?

 

If yes, 

1. Have you looked at descriptive stats procedures like proc summary,means etc?

2. If you want SQL, have you looked at functions like mean/avg ?

 

 

ballardw
Super User

What does your existing data look like?

 

Very likely proc summary with seat as CLASS variable (or By variable) will work if you need a data set.

 

Procs Report or Tabulate will create report for people to read.

 

So, which do you need?

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
  • 2 replies
  • 1124 views
  • 1 like
  • 3 in conversation