SCM

SCM Repository

[latticeextra] Annotation of /www/man/USAge.html
ViewVC logotype

Annotation of /www/man/USAge.html

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : felix 114
2 :     <html><head><title>R: US national population estimates</title>
3 :    
4 :    
5 :     </head><body>
6 :    
7 :     <table width="100%" summary="page for USAge {latticeExtra}"><tr><td>USAge {latticeExtra}</td><td align="right">R Documentation</td></tr></table>
8 :    
9 :     <h2>US national population estimates</h2>
10 :    
11 :    
12 :     <h3>Description</h3>
13 :    
14 : felix 125 <p>
15 : felix 114 US national population estimates by age and sex from 1900 to 1979.
16 :     The data is available both as a (3-dimensional) table and a data
17 :     frame. The second form omits the 75+ age group to keep age numeric.
18 : felix 125 </p>
19 : felix 114
20 :    
21 :     <h3>Usage</h3>
22 :    
23 :     <pre>
24 :     data(USAge.table)
25 :     data(USAge.df)
26 :     </pre>
27 :    
28 :    
29 :     <h3>Format</h3>
30 :    
31 : felix 125 <p>
32 : felix 114 <code>USAge.table</code> is a 3-dimensional array with dimensions
33 :    
34 : felix 125 </p>
35 : felix 114 <table summary="Rd table">
36 :     <tr>
37 :     <td align="right">
38 :     No </td><td align="left"> Name </td><td align="left"> Levels</td>
39 :     </tr>
40 :     <tr>
41 :     <td align="right">
42 :     1 </td><td align="left"> Age </td><td align="left"> 0, 1, 2, ..., 74, 75+</td>
43 :     </tr>
44 :     <tr>
45 :     <td align="right">
46 :     2 </td><td align="left"> Sex </td><td align="left"> Male, Female</td>
47 :     </tr>
48 :     <tr>
49 :     <td align="right">
50 :     3 </td><td align="left"> Year </td><td align="left"> 1900, 1901, ..., 1979 </td>
51 :     </tr>
52 :     <tr>
53 :     <td align="right">
54 :     </td>
55 :     </tr>
56 :    
57 : felix 125 </table><p>
58 : felix 114
59 :     Cells contain raw counts of estimated population.
60 : felix 125 </p>
61 :     <p>
62 : felix 114 <code>USAge.df</code> is a data frame with 12000 observations on the
63 :     following 4 variables.
64 :    
65 :     <dl>
66 :     <dt><code>Age</code></dt><dd>a numeric vector, giving age in years</dd>
67 :     <dt><code>Sex</code></dt><dd>a factor with levels <code>Male</code> <code>Female</code></dd>
68 :     <dt><code>Year</code></dt><dd>a numeric vector, giving year</dd>
69 :     <dt><code>Population</code></dt><dd>a numeric vector, giving population in
70 :     millions</dd>
71 :     </dl>
72 :    
73 : felix 125 </p>
74 : felix 114
75 :    
76 :     <h3>Details</h3>
77 :    
78 : felix 125 <p>
79 :     </p>
80 :     <p>
81 : felix 114 The data for 1900-1929 are rounded to thousands. The data for
82 :     1900-1939 exclude the Armed Forces overseas and the population
83 :     residing in Alaska and Hawaii. The data for 1940-1949 represent the
84 :     resident population plus Armed Forces overseas, but exclude the
85 :     population residing in Alaska and Hawaii. The data for 1950-1979
86 :     represent the resident population plus Armed Forces overseas, and
87 :     also include the population residing in Alaska and Hawaii.
88 : felix 125 </p>
89 :     <p>
90 :     </p>
91 : felix 114
92 :    
93 :     <h3>Source</h3>
94 :    
95 : felix 125 <p>
96 :     </p>
97 :     <p>
98 : felix 114 <a href="http://www.census.gov/popest/archives/pre-1980/PE-11.html">http://www.census.gov/popest/archives/pre-1980/PE-11.html</a>
99 :     U.S. Census Bureau, Population Division. Internet Release date:
100 :     October 1, 2004
101 : felix 125 </p>
102 :     <p>
103 : felix 114 The data were available as individual files for year, with varying
104 :     levels for the margins. The preprocessing steps used to reduce the
105 :     data to the form given here are described in the scripts directory.
106 : felix 125 </p>
107 :     <p>
108 :     </p>
109 : felix 114
110 :    
111 :     <h3>Examples</h3>
112 :    
113 :     <pre>
114 : felix 120 data(USAge.df)
115 :     head(USAge.df)
116 :    
117 :     ## Figure 10.7 from Sarkar (2008)
118 :     xyplot(Population ~ Age | factor(Year), USAge.df,
119 :     groups = Sex, type = c("l", "g"),
120 :     auto.key = list(points = FALSE, lines = TRUE, columns = 2),
121 :     aspect = "xy", ylab = "Population (millions)",
122 :     subset = Year %in% seq(1905, 1975, by = 10))
123 : felix 114 </pre>
124 :    
125 : felix 143 <div align="center">[Package <em>latticeExtra</em> version 0.6-12 <a href="00Index.html">Index</a>]</div>
126 : felix 114 </body></html>

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge