BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Cruise
Ammonite | Level 13
proc tabulate data=have order=internal;
var ob;
class agecat race1 ;
tables (All agecat race1 ), 
	   (N colpctn*f=5.1) ob*(mean*f=percent7.1 lclm uclm)/nocellmerge printmiss;
run; 

Hi guys, I'd like to calculate 95% CI in the proc tabulate output. However, the output doesn't make sense. Any hints for what I might be doing wrong here?

 

 

proc tab.png

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

It works fine, you didn't apply any format to it, so it shows as decimals instead. 

Apply a percentage format and make sure it's long enough to show at least one decimal place.

 


@Cruise wrote:
proc tabulate data=have order=internal;
var ob;
class agecat race1 ;
tables (All agecat race1 ), 
	   (N colpctn*f=5.1) ob*(mean*f=percent7.1 lclm uclm)/nocellmerge printmiss;
run; 

Hi guys, I'd like to calculate 95% CI in the proc tabulate output. However, the output doesn't make sense. Any hints for what I might be doing wrong here?

 

 

proc tab.png



 

 

 

View solution in original post

3 REPLIES 3
SuryaKiran
Meteorite | Level 14

Please provide sample data if possible and your expected result.

 

Try using PROC UNIVARIATE instead.

Thanks,
Suryakiran
ballardw
Super User

@Cruise wrote:
proc tabulate data=have order=internal;
var ob;
class agecat race1 ;
tables (All agecat race1 ), 
	   (N colpctn*f=5.1) ob*(mean*f=percent7.1 lclm uclm)/nocellmerge printmiss;
run; 

Hi guys, I'd like to calculate 95% CI in the proc tabulate output. However, the output doesn't make sense. Any hints for what I might be doing wrong here?

 

 

proc tab.png


Describe what about that output "does not make sense".

By any chance did you want the confidence limits to show % signs? Use a format similar to the way you did means, though I suggest making it a bit wider and including a couple more decimal places

Reeza
Super User

It works fine, you didn't apply any format to it, so it shows as decimals instead. 

Apply a percentage format and make sure it's long enough to show at least one decimal place.

 


@Cruise wrote:
proc tabulate data=have order=internal;
var ob;
class agecat race1 ;
tables (All agecat race1 ), 
	   (N colpctn*f=5.1) ob*(mean*f=percent7.1 lclm uclm)/nocellmerge printmiss;
run; 

Hi guys, I'd like to calculate 95% CI in the proc tabulate output. However, the output doesn't make sense. Any hints for what I might be doing wrong here?

 

 

proc tab.png



 

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 4874 views
  • 2 likes
  • 4 in conversation