BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Dear SAS users:

I'd like to get some help about the bootstrap of a data set.
The data set is like following:

ID, OBS, TIME, HEIGHT, WEIGHT
5001, 10, 0.1, 180, 71
5001, 3, 1, 180, 71
5001, 1, 2, 180, 71
5003, 15, 0.1, 170, 60
5003, 3, 1, 170, 60
5003, 2, 2, 170, 60
5004
5004
5004
.
.
.

The total number of subjects is 36 with ID numbered from 5001 to 5050 (some ID number was missing). I'd like to bootstrap the data set by subject ID to form a new data set containing 100 subjects with ID numbered from 1 to 100.

Thanks a lot for help and have a nice day!
2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12
Go to support.sas.com and search for bootstrap to get lots of guidance on it's use.

Usually, bootstrapping does sampling with replacement to get 'sample' that is the same size as the original. I'm concerned that changing the sample size will artificially reduce the variability and bias the inference. Efron & Tibsurani (An introduction to the bootstrap) is a classic reference.
deleted_user
Not applicable
Hi Doc@Duke:

Thanks for the good point.

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