Learn R Programming

PASWR2 (version 1.0.5)

DEPEND: Number of Dependent Children for 50 Families

Description

Number of dependent children for 50 randomly selected families

Usage

DEPEND

Arguments

Format

A data frame with 50 observations on 1 variable:

  • number (number of dependent children)

References

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.

Examples

Run this code
# NOT RUN {
xtabs(~number, data = DEPEND)
ggplot(data = DEPEND, aes(x = factor(number))) + 
geom_bar(fill = "cornsilk", color = "orange") + labs(x = "Number of Dependent Children")
ggplot(data = DEPEND, aes(x = number)) + geom_density(fill = "pink", alpha = 0.3, 
color = "red") + labs(x = "Number of Dependent Children")
# }

Run the code above in your browser using DataLab