BookmarkSubscribeRSS Feed
Sina
Fluorite | Level 6

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: 

Untitled.png

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!

3 REPLIES 3
Rick_SAS
SAS Super FREQ

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.

Sina
Fluorite | Level 6

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.

Rick_SAS
SAS Super FREQ

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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1783 views
  • 1 like
  • 2 in conversation