turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS Procedures
- /
- Macro for confidence intervals

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

08-21-2014 04:30 PM

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!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to malena

08-22-2014 09:47 AM

Check proc univariate option :

CIBASIC , CIPCTLNORMAL is based on Normal distribution .

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

Xia Keshan