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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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