I have three years of data for about 10 schools.
For each school, I would like to:
1. Take the three years of values and sample with replacement to obtain a resample of 30 values.
2. Calculate a mean and SD of these 30 values.
3. Repeat the bootstrap process 1,000 times to create 1,000 sample means and 1,000 sample SDs.
I have never used the Stata bootstrapping features so am unsure if this the solution is complex or rather straightforward.
Any suggestions? Thank you.
Code:
School Yr1 Yr2 Yr3 A .70 .75 .72 B .50 .46 .48 ... J .60 .61 .60
1. Take the three years of values and sample with replacement to obtain a resample of 30 values.
2. Calculate a mean and SD of these 30 values.
3. Repeat the bootstrap process 1,000 times to create 1,000 sample means and 1,000 sample SDs.
I have never used the Stata bootstrapping features so am unsure if this the solution is complex or rather straightforward.
Any suggestions? Thank you.
Comment