Database Reference
In-Depth Information
totalPop 1.0000000 0.9156951
totalHousehold 0.9156951 1.0000000
cor has a default method using Pearson's test statistic, calculating the shortest “distance”
between each of the pairwise variables. Total population and household families are very close
to each other, and thus have a R-squared value of 0.92. The use="complete" option suggests
that only those variables with no missing values should be used to find correlation. The other
option is pairwise.
table() is a good way to look at the frequency distribution.
> table(ct$FCS)
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
91 56 46 43 34 29 20 16 13 9 8 2 6 2 2 3 1
One of the 381 tracts has 16 foreclosures, and 91 tracts have no foreclosures. Plots provide a
more visually pleasing way to look at this data.
Search WWH ::




Custom Search