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?
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?
Please provide sample data if possible and your expected result.
Try using PROC UNIVARIATE instead.
@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?
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
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?
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.
Ready to level-up your skills? Choose your own adventure.