Generalized additive models - measuring the household income of New Zealand
An income survey provides a snapshot of income levels for people and households. It gives median and average weekly income from most sources. There are income comparisons across different population groups. Income is only received intermittently, whereas consumption is smoothed over time. As a consequence, it is reasonable to expect that consumption is more directly related to current living standards than current income, at least for short reference periods.
Getting ready
In order to perform shrinkage methods, we will be using a dataset collected on the New Zealand Census 2013.
Step 1 - collecting and describing data
The nzcensus
package contains demographic values of New Zealand that are more than 60 in number. These values have been accumulated at the level of mesh block, area unit, territorial authority, and regional council.
How to do it...
Let's get into the details.
Step 2 - exploring data
The first step is...