SCM

SCM Repository

[latticeextra] Annotation of /pkg/man/USAge.Rd
ViewVC logotype

Annotation of /pkg/man/USAge.Rd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 194 - (view) (download) (as text)

1 : deepayan 2 \name{USAge}
2 : felix 113 \alias{USAge}
3 : deepayan 2 \alias{USAge.table}
4 :     \alias{USAge.df}
5 :     \docType{data}
6 :     \title{ US national population estimates }
7 :     \description{
8 :     US national population estimates by age and sex from 1900 to 1979.
9 :     The data is available both as a (3-dimensional) table and a data
10 :     frame. The second form omits the 75+ age group to keep age numeric.
11 :     }
12 :    
13 :     \usage{
14 :     data(USAge.table)
15 :     data(USAge.df)
16 :     }
17 :    
18 :     \format{
19 :     \code{USAge.table} is a 3-dimensional array with dimensions
20 :     \tabular{rll}{
21 :     No \tab Name \tab Levels\cr
22 :     1 \tab Age \tab 0, 1, 2, \dots, 74, 75+\cr
23 :     2 \tab Sex \tab Male, Female\cr
24 :     3 \tab Year \tab 1900, 1901, \dots, 1979 \cr
25 :     }
26 :     Cells contain raw counts of estimated population.
27 :    
28 :     \code{USAge.df} is a data frame with 12000 observations on the
29 :     following 4 variables.
30 :     \describe{
31 :     \item{\code{Age}}{a numeric vector, giving age in years}
32 :     \item{\code{Sex}}{a factor with levels \code{Male} \code{Female}}
33 :     \item{\code{Year}}{a numeric vector, giving year}
34 :     \item{\code{Population}}{a numeric vector, giving population in
35 :     millions}
36 :     }
37 :     }
38 :    
39 :     \details{
40 :    
41 :     The data for 1900-1929 are rounded to thousands. The data for
42 :     1900-1939 exclude the Armed Forces overseas and the population
43 :     residing in Alaska and Hawaii. The data for 1940-1949 represent the
44 :     resident population plus Armed Forces overseas, but exclude the
45 :     population residing in Alaska and Hawaii. The data for 1950-1979
46 :     represent the resident population plus Armed Forces overseas, and
47 :     also include the population residing in Alaska and Hawaii.
48 :    
49 :     }
50 :    
51 :     \source{
52 :    
53 : deepayan 194 U.S. Census Bureau website:
54 : deepayan 2
55 : deepayan 194 \url{http://www.census.gov/popest/data/national/asrh/pre-1980/PE-11.html}
56 :    
57 : deepayan 2 The data were available as individual files for year, with varying
58 :     levels for the margins. The preprocessing steps used to reduce the
59 :     data to the form given here are described in the scripts directory.
60 :    
61 :     }
62 :    
63 :     \examples{
64 : felix 120 data(USAge.df)
65 :     head(USAge.df)
66 :    
67 :     ## Figure 10.7 from Sarkar (2008)
68 :     xyplot(Population ~ Age | factor(Year), USAge.df,
69 :     groups = Sex, type = c("l", "g"),
70 :     auto.key = list(points = FALSE, lines = TRUE, columns = 2),
71 :     aspect = "xy", ylab = "Population (millions)",
72 :     subset = Year \%in\% seq(1905, 1975, by = 10))
73 : deepayan 2 }
74 :     \keyword{datasets}
75 :    
76 :    
77 :    

R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge