AF: OPHI counting approach

View source: R/AF.R

AFR Documentation

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, ...)
## Default S3 method:
AF(y, z, w=rep(1, ncol(y)), k=sum(w), freq=rep(1, nrow(y)), ...)
## S3 method for class 'wprof'
AF(y, ...)

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.

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.

References

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

Examples

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

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

res

parsec documentation built on Aug. 19, 2023, 5:07 p.m.