Learn R Programming

Bolstad (version 0.2-41)

sscsample.data: 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.

Arguments

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

Run this code
# NOT RUN {
data(sscsample.data)
plot(income~ethnicity, data = sscsample.data)

# }

Run the code above in your browser using DataLab