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

This seems silly, but I'm having an issue that I'm not sure what I'm doing incorrectly.  Code:

 

proc means data= data mean lclm uclm alpha=.05;
by measure;
var score;
output out= data2 mean=avg lclm=lcl uclm=ucl;
run;

 

What happens is I get the correct means and confidence limits on the printed output.  However, the output data set contains whole numbers for both the mean and confidence limits, which is clearly incorrect. I want the output data set so I can create a chart. 


Suggestions?

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

Change the format on variable SCORE to allow for decimals.

--
Paige Miller

View solution in original post

3 REPLIES 3
PaigeMiller
Diamond | Level 26

Change the format on variable SCORE to allow for decimals.

--
Paige Miller
tellmeaboutityo
Obsidian | Level 7

Perfect, thank you!

 

data data2; set data;
format score 5.2;
run;

 

proc means data= data2mean lclm uclm alpha=.05;
by measure;
var score;
output out= data 3 mean=avg lclm=lcl uclm=ucl;
run;

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 2349 views
  • 2 likes
  • 3 in conversation