Data Sets and SAS Code for
Sampling: Design and Analysis
, 2nd ed., by Sharon L. Lohr

©2010 Brooks/Cole, Cengage Learning
ISBN-13: 978-0-495-10527-5; ISBN-10: 0-495-10527-9
www.cengage.com/statistics/lohr


In some cases, the data sets used in this book are a subset of the original data; in others, the information has been modified to protect the confidentiality of the respondents. They are included for instructional purposes only. Anyone wishing to investigate the subject matter further should obtain the original data from the source.

All data sets ending in .csv use commas as a separator between fields.

All SAS and R code is provided for instructional purposes only. It is not intended to be used for production purposes, and no guarantees are provided for the code. If you wish to use or adapt these programs for other purposes, the citation is: 
Lohr, S. L. (2009). Sampling: Design and Analysis, 2nd ed. [online SAS programs].




Descriptions of all data sets 


Data sets used in Chapter 2.

Data setSAS codeDescription

samples.csvexample0203.sassamples.pdf

example0204.sas

agpop.csvsrsselect.sasagpop.pdf

selectrs.csvselectrs.pdf

agsrs.csvexample0210.sasagsrs.pdf

example0209.csv

srs30.csvsrs30.pdf

ssc.csvssc.pdf

golfsrs.csvgolfsrs.pdf

agsrs.csvexample0210.sasagsrs.pdf

rnt.txtrnt.pdf

baseball.csvbaseball.sasbaseball.pdf

forest.csvforest.sasforest.pdf

ipums.csvipums.sasipums.pdf




Data sets used in Chapter 3.

Data setSAS codeDescription

agstrat.csvexample0306.sasagstrat.pdf

agpop.csvstratselect.sasagpop.pdf

example0310.sas

seals.csvseals.pdf

otters.csvotters.pdf

divorce.csvdivorce.pdf

nybight.csvnybight.pdf

winter.csvwinter.pdf

radon.csvradon.sasradon.pdf

vius.csvvius.sasvius.pdf

viusca.csv

baseball.csvbaseball.sasbaseball.pdf

ipums.csvipums.sasipums.pdf




Data sets used in Chapter 4.

Data setSAS codeDescription

agsrs.csvexample0403.sasagsrs.pdf

artifratio.csvartifratio.pdf

agsrs.csvexample0407.sasagsrs.pdf

example0408.sas

example0409.sas

agsrs.csvexample0411.sasagsrs.pdf

example0412.sas

ssc.csvssc.pdf

golfsrs.csvgolfsrs.pdf

agsrs.csvexample0407.sasagsrs.pdf

cherry.csvcherry.sascherry.pdf

counties.csvcounties.pdf

forest.csvforest.sasforest.pdf

vius.csvvius.sasvius.pdf

baseball.csvbaseball.sasbaseball.pdf

ipums.csvipums.sasipums.pdf




Data sets used in Chapter 5.

Data setSAS or R codeDescription

example0502.sas

example0504.sas

algebra.csvexample0506.sasalgebra.pdf

coots.csvexample0507.sascoots.pdf

example0507.xls

example0511.sas

example0514.sas

clusterselect.sas

spanish.csvspanish.pdf

books.csvbooks.pdf

teachers.csvteachers.pdf

teachmi.csvteachmi.pdf

measles.csvmeasles.pdf

agsrs.csvexample0210.sasagsrs.pdf

agpop.csvsrsselect.sasagpop.pdf

ozone.csvozone.pdf

intervalsR.txt

baseball.csvbaseball.sasbaseball.pdf

ipums.csvipums.sasipums.pdf




Data sets used in Chapter 6.

Data setSAS or R codeDescription

example0602.sas

example0604.sas

statepop.csvexample0605.sasstatepop.pdf

example0606.sas

agpop.csvexample0610.sasagpop.pdf

agpps.csvhorvitzthompsonR.txtagpps.pdf

example0611.sas

ppsselect.sas

auditselect.csvauditselect.pdf

auditresult.csvexample0614.sasauditresult.pdf

azcounties.csvazcounties.pdf

statepps.csvstatepps.pdf

exercise0602.csv

classppsjp.csvexample0611.sasclassppsjp.pdf

wtshare.csvwtshare.pdf

rectlength.csvrectlength.pdf

baseball.csvbaseball.sasbaseball.pdf

ipums.csvipums.sasipums.pdf




Data sets used in Chapter 7.

Data setSAS codeDescription

htpop.csvexample0605.sashtpop.pdf

htcdf.csvexample0703.sashtcdf.pdf

htsrs.csvexample0703.sashtsrs.pdf

htstrat.csvtable0701.sashtstrat.pdf

htstrat.csvexample0705.sashtstrat.pdf

htstrat.csvexample0706.sashtstrat.pdf

syc.csvexample0707.sassyc.pdf

nhanes.csvnhanes.sasnhanes.pdf

integerwt.csvintegerwt.pdf

nybight.csvnybight.pdf

teachers.csvteachers.pdf

teachmi.csvteachmi.pdf

measles.csvmeasles.pdf

statepop.csvexample0605.sasstatepop.pdf

ncvs2000.csvncvs.sasncvs2000.pdf

nhanes.csvexercise0720.sasnhanes.pdf

vius.csvvius.sasvius.pdf

ipums.csvipums.sasipums.pdf

baseball.csvbaseball.sasbaseball.pdf




Data sets used in Chapter 8.

Data setSAS codeDescription

winter.csvwinter.pdf

certify.csvcertify.pdf

syc.csvexample0707.sassyc.pdf

teachers.csvteachers.pdf

teachmi.csvteachmi.pdf

teachnr.csvteachnr.pdf

measles.csvmeasles.pdf

agpop.csvexercise0814.sas




Data sets used in Chapter 9.

Data setSAS codeDescription

college91.csvcollege91.pdf

syc.csvexample0904.sassyc.pdf

table0902.sas

nhanes.csvexample0905.sasnhanes.pdf

coots.csvexample0907.sascoots.pdf

syc.csvexample0908.sassyc.pdf

htsrs.csvexample0909.sashtsrs.pdf

htstrat.csvexample0910.sashtstrat.pdf

htstrat.csvexample0912.sashtstrat.pdf

srs30.csvsrs30.pdf

agstrat.csvexample0306.sasagstrat.pdf

measles.csvmeasles.pdf

agsrs.csvexample0210.sasagsrs.pdf

golfsrs.csvgolfsrs.pdf

nhanes.csvnhanes.sasnhanes.pdf

ncvs2000.csvncvs.sasncvs2000.pdf

forest.csvforest.sasforest.pdf

vius.csvvius.sasvius.pdf

baseball.csvbaseball.sasbaseball.pdf

ipums.csvipums.sasipums.pdf




Data sets used in Chapter 10.

Data setSAS codeDescription

example1001.sas

example1002.sas

syc.csvexample1005.sassyc.pdf

syc.csvexample1006.sassyc.pdf

winter.csvwinter.pdf

teachers.csvteachers.pdf

teachmi.csvteachmi.pdf

nhanes.csvnhanes.sasnhanes.pdf

ncvs2000.csvncvs.sasncvs2000.pdf

vius.csvvius.sasvius.pdf

baseball.csvbaseball.sasbaseball.pdf

ipums.csvipums.sasipums.pdf




Data sets used in Chapter 11.

Data setSAS codeDescription

anthrop.csvanthrop.pdf

anthsrs.csvexample1102.sasanthsrs.pdf

anthuneq.csvexample1103.sasanthuneq.pdf

anthuneq.csvexample1104.sasanthuneq.pdf

anthuneq.csvexample1105.sasanthuneq.pdf

nhanes.csvexample1106.sasnhanes.pdf

nhanes.csvexample1107.sasnhanes.pdf

nhanes.csvexample1108.sasnhanes.pdf

example1111.sas

nhanes.csvexample1112.sasnhanes.pdf

spanish.csvspanish.pdf

nybight.csvnybight.pdf

teachers.csvteachers.pdf

teachmi.csvteachmi.pdf

books.csvbooks.pdf

ncvs2000.csvncvs.sasncvs2000.pdf

uneqvar.csvuneqvar.pdf

vius.csvvius.sasvius.pdf

baseball.csvbaseball.sasbaseball.pdf

ipums.csvipums.sasipums.pdf




Data sets used in Chapter 12.

Data setSAS codeDescription

agpop.csvexample1206.sasagpop.pdf

shorebirds.csvshorebirds.pdf

agstrat.csvexample0306.sasagstrat.pdf

agpop.csvexercise1222.sasagpop.pdf

forest.csvforest.sasforest.pdf




Data sets used in Chapter 13.

Data setSAS or R codeDescription

section13-1-2R.txt

example1303.sas

agstrat.csvexample0306.sasagstrat.pdf

agpop.csvexercise1222.sasagpop.pdf

forest.csvforest.sasforest.pdf