BookmarkSubscribeRSS Feed
SAS_User8
Calcite | Level 5

Is it possible to add an option to the SAS Survey Commands to reset negative LCL to zero?

3 REPLIES 3
ballardw
Super User

Send your output to a data set and use data step program to reset such things. You might want to look at upper bounds as well if your confidence limits are on percentages as they can exceed 100 percent mathematically if not practically.

SAS_User8
Calcite | Level 5
Thanks! Yes, that's what we do, but I was wondering if SAS could introduce an option in the SAS survey commands to request that change be made automatically. It's a bit tedious to do manually in data step.
Thanks for considering!
a
Rick_SAS
SAS Super FREQ

What parameter are you estimating? Post your code. There might be something we can suggest

 

Many SAS procedures ensure that confidence intervals make sense for the parameter. For example, if you use PROC FREQ to estimate a binomial proportion, the CI for the proportion is always a subinterval of [0,1]. Similarly, a confidence interval for a variance or an odds ratio will never include a negative value. 

 

If your statistic is assumed to be normally distributed, SAS will carry out the usual computations. SAS does not know when a parameter is bounded unless you tell it.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 1491 views
  • 0 likes
  • 3 in conversation