diff --git a/articles/gd_functions.html b/articles/gd_functions.html index 32b4452..bb375e8 100644 --- a/articles/gd_functions.html +++ b/articles/gd_functions.html @@ -253,8 +253,40 @@
First, we can apply the pipgd_pov_headcount()
function
+to determine the proportion of the population living below a specified
+poverty line. According to Datt(1998), the rural poverty line for India
+in 1983 is Rs. 89:
+poverty_line <- 89
+headcount1 <- pipgd_pov_headcount(welfare = pip_gd$L,
+ weight = pip_gd$P,
+ povline = poverty_line)
+print(headcount1)
+#> povline headcount lorenz
+#> <num> <num> <char>
+#> 1: 89 1.0044 lq
However, one might want to calculate the poverty line using
+povertyline = mean * times_mean
instead. When defining
+these parameters, it is important not to define a poverty line as well,
+otherwise the parameters mean
and times_mean
+will be ignored:
+headcount2 <- pipgd_pov_headcount(welfare = pip_gd$L,
+ weight = pip_gd$P,
+ mean = 109.9,
+ times_mean = 0.8)
+
+print(headcount2)
+#> povline headcount lorenz
+#> <num> <num> <char>
+#> 1: 87.92 0.4416621 lb