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
- /
- Analytics
- /
- Stat Procs
- /
- Bootstrap confidence interval for Risk Ratio

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

06-20-2017 04:05 PM

Hi. I'm fairly new to SAS and I need help with a bootstrap procedure. I have an epidemiologic 2x2 table that looks like this:

Now with this table, I can calculate risk ratio (defined as a/N0 / b/N1). However, since the numbers are not integers and are weighted quantities, I cannot use parametric methods to calculate CI. How can I calculate a bootstrap 95% CI for this sample? If there is not a direct way, would you recommend rounding the weighted quantities to the nearest integers and then create a hypothetical sample of say 2630 individuals and then use that sample for bootstrapping? Any other suggestions?

thanks!

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

06-20-2017 04:10 PM

If the cells are not counts, what are they? A bootstrap resampling should usually mimic the data collection process. Please explain what these numbers are, what the underlying data look like, and how the underlying data were sampled.

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

06-20-2017 04:16 PM

the cells are 'counts x stabilized weights'. The weights are in the inverse of the probability of being sampled and therefore can be viewed as sampling weights. So basically, we can deconstruct the data to rows with each individual having an exposure status, a disease status, and a weight.

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

06-20-2017 08:37 PM

It sounds like this is survey data. If so, you can use PROC SURVEYLOGISTIC, which supports sampling weights. You can specify the CLODDS option on the MODEL statement to get confidence limits for odds ratios.Check out the Getting Started example and see if that helps.