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

Hi, I am using the "output" statement in "proc means" in  SAS 9.4 to generate means and 95% CI's for a particular numeric variable for each level of a "by" variable. I have written the following "output" statement:

 

output out=X N=N mean=mean lclm=lclm uclm=uclm;

 

My question: Does this code correctly produce the appropriate two-sided confidence intervals for each mean (ie. two-sided and using the appropriate t-value corresponding to the N for each "by" group, as some of the "by" groups are quite small)? I 'd like to confirm that it does because, unlike the documentation for other procedures in 9.4 that explicitly state that "lclm" and "uclm" used in conjunction with one another does in fact do this (while producing only one-sided CI's if only one of the two is specified), I did not notice such a comment in the 9.4 documentation for "proc means".

 

Thanks!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Short answer: Yes.

 

Depending on which documentation the Usage section has a bit more on Confidence Limits to reassure.

 

 

 

 

View solution in original post

2 REPLIES 2
ballardw
Super User

Short answer: Yes.

 

Depending on which documentation the Usage section has a bit more on Confidence Limits to reassure.

 

 

 

 

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

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