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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 968 views
  • 0 likes
  • 2 in conversation