BookmarkSubscribeRSS Feed
Polargom
Calcite | Level 5


Hi everyone,

I am having problem calculating the lower limit of 99% confidence interval while I am calculating the age standardized rate.

Using below formula (which is one step before getting the CI), somehow it does not compute a value over 126,100.

l_lam99 = gaminv(1 - 0.99) / 2, ncases);

u_lam99 = gaminv(1 + 0.99) / 2, ncases);

For me the ncases are like 129,822 ~ 151,138, which is way higher than 126,100.

Is there any other way to calculate this right or any other solution please?

Thank you,

Albert

2 REPLIES 2
SteveDenham
Jade | Level 19

You may want to investigate the QUANTILE function.  In SAS 9.3, I had no trouble with the following:

l_lam99 = quantile('GAMMA', (1 - 0.99)/2, ncases);

and inserting 200,000 as the number of cases.

Good luck.

Steve Denham

Polargom
Calcite | Level 5

Thank you so much Steve!

That worked on mine too. You've saved my days and hope you have a good week.

Cheers,

Albert Bang

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
  • 2 replies
  • 1182 views
  • 0 likes
  • 2 in conversation