1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
libname IPUMS "/home/u44593168";
/* Number of housing units */
/* Occupied vs. Vacant */
proc gchart data=IPUMS.houses;
format VACANT VACANT_f.;
donut VACANT / discrete clockwise slice=outside value=none percent=outside freq=HHWT;
run;
quit;
/* Ownership of occupied units */
proc gchart data=IPUMS.houses;
format OWN OWN_f.;
donut OWN / discrete clockwise slice=outside value=none percent=outside freq=HHWT;
run;
quit;
/* Types of structure */
proc gchart data=IPUMS.houses;
format BLD_CAT BLD_CAT_f.;
donut BLD_CAT / discrete clockwise slice=outside value=none percent=outside freq=HHWT;
run;
quit;
/* Year moved in, by percentage of population */
/* NOTE: Continuous data not available publicly */
/* Median value of owner-occupied housing units */
proc means data=IPUMS.houses median;
var VAL_OWN;
weight HHWT;
run;
/* Value of owner-occupied housing units */
ods select freqplot;
proc freq data=IPUMS.houses;
format VAL_OWN_CAT VAL_OWN_CAT_f.;
tables VAL_OWN_CAT / plots=freqplot(orient=vertical scale=percent);
weight HHWT;
run;
/* Moved since previous year */
proc freq data=IPUMS.people;
format MIG_CAT MIG_CAT_f.;
tables MIG_CAT;
weight PERWT;
run;
/* Population migration since previous year */
ods select freqplot;
proc freq data=IPUMS.people;
format MIG_CAT2 MIG_CAT2_f.;
tables MIG_CAT2 / plots=freqplot(orient=vertical scale=percent);
weight PERWT;
run;