Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

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)

Bolstad

Functions for Elementary Bayesian Inference

v0.2-41
GPL (>= 2)
Authors
James Curran [aut, cre]
Initial release
2020-09-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.