A data set containing the sample frame—a list of all population elements—is passed to
PROC SURVEYSELECTas data=SMSA_from_txt. A simple random sample of a
specified sample size is specified in method=srs n=6with the resulting sample stored
in the SAS data set specified by out=sample_SMSA_cities. The sample is printed
in Display 3.33.
Display 3.33Simple random sample of N=6 cities selected from a data set
containing N=60 cities
ObscityJanTemp JulyTemp RelHumNOxPotS02Pot NOx
1
Baltimore, MD35 77 55 38 206 38
2
Chattanooga, TN-
GA
42 79 56 8 27 8
3
Miami-Hialeah,
FL
67 82 60 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.