BookmarkSubscribeRSS Feed
malena
Calcite | Level 5

I am trying to calculate confidence intervals around teen birth rates by race (WNH, BNH, Asian NH, and Hispanic) for each the largest towns for the state. I will like to create a macro that identifies if the number of teen births for each race group is less than 100 then to calcualte the Confidence Intervals using a poisson distribution if not then a normal distribution where U

Using the following formula when the number of teen births (the numerator) is >= 100:

LCI95 = R - (1.96 * (R/sqrt(Births))

UCI95 = R + (1.96 * (R/sqrt(Births))

where

R = birth rate

B = number of births

 

Usingthe following formula when the number of teen births (numerator) is < 100:

So I need to create a file with the poisson values.

LCI95 = R * L

UCI95 = R * U

where

R = birth rate

L,U = values in the poisson table that correspoins to the number of births.

Any help will be much appreciated!

1 REPLY 1
Ksharp
Super User

Check proc univariate option :

CIBASIC , CIPCTLNORMAL  is based on Normal distribution .

CIPCTLDF  is based on Free Distribution i.e. non-parameter method .

Xia Keshan

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 1167 views
  • 0 likes
  • 2 in conversation