Learn R Programming

parsec (version 1.1.1)

AF: OPHI counting approach

Description

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

Usage

AF(y, ...)
## S3 method for class 'default':
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, it can be substituted by an object of class wprof.
z
vector of attribute cutoffs.
w
variables weights.
k
overall cutoff.
freq
profiles frequencies, if y is an object of class wprof this argument can be omitted.
...
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 with the following arguments
  • ymatrix of profiles,
  • freqprofile frequencies,
  • dnumber of variables
  • nnumber of observations (sun of frequencies),
  • zvector of cutoffs,
  • koverall cutoff,
  • rhofunction comparing profiles with the vector of cutoffs,
  • rho_kfunction comparing profiles with the overall cutoff, by weighting variables,
  • g0profile-variable matrix reporting the output of function rho,
  • ccensored vector of deprivation counts,
  • Z_ka boolean vector identifying deprived profiles, according to specified cutoffs,
  • qnumber of poor statstical units in the population,
  • Hheadcount ratio, i.e. of q/n, where n is the number of statistical units in the population,
  • Aaverage deprivation share,
  • M0adjusted headcount ratio.

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