sscsample.data {Bolstad} | R Documentation |
Data for simple random sampling, stratified sampling, and clusting sampling experiments
Description
A simulated population made up of 100 individuals. The individuals come from three ethnic groups with population proportions of 40%, 40%, and 20%, respectively. There are twenty neighborhoods, and five individuals live in each one. Now, the income distribution may be different for the three ethnic groups. Also, individuals in the same neighborhood tend to be more similar than individuals in different neighborhoods.
Format
A data frame with 100 observations on the following 3 variables.
income. Simulated income in $10,000
ethnicity. A numerical vector indicating the ethnic group of the observation
neighborhood. A numeric vector indicating the neighborhood of the observation
Examples
data(sscsample.data)
plot(income~ethnicity, data = sscsample.data)
[Package Bolstad version 0.2-41 Index]