Learn R Programming

parsec (version 1.2.7)

AF: OPHI counting approach

Description

The function implements the OPHI counting approach, in a single call. The implementation is limited to ordinal attributes.

Usage

AF(y, ...)
# S3 method for default
AF(y, z, w=rep(1, ncol(y)), k=sum(w), freq=rep(1, nrow(y)), ...)
# S3 method for wprof
AF(y, ...)

Value

An object of S3 class ophi containing all the outputs related to the OPHI counting approach. The object is a list

comprising:

y

matrix of profiles,

freq

profiles' frequencies,

d

number of variables

n

number of observations (sum of frequencies),

z

vector of cutoffs,

k

overall cutoff,

rho

function comparing profiles to the vector of cutoffs,

rho_k

function comparing profiles to the overall cutoff, by weighting variables,

g0

profile-variable matrix reporting the output of function rho,

c

censored vector of deprivation counts,

Z_k

boolean vector identifying deprived profiles, according to the specified cutoffs,

q

number of poor statstical units in the population,

H

headcount ratio, i.e. q/n, where n is the number of statistical units in the population,

A

average deprivation share,

M0

adjusted headcount ratio.

Arguments

y

matrix of profiles, possibly substituted by an object of class wprof.

z

vector of attribute cutoffs.

w

variables' weights.

k

overall cutoff.

freq

profiles' frequencies; the argument can be omitted if y is an object of class wprof. .

...

any of the above.

References

Alkire S., Foster J. (2011), Counting and multidimensional poverty measurement, Journal of Public Economics, 96(7-8), 476-487.

Examples

Run this code
vl <- c(2, 3, 3, 2)
prof <- var2prof(varlen = vl)

res <- AF(prof, z = c(1, 2, 1, 1), k = 1)

res

Run the code above in your browser using DataLab