eq_predicate {FuzzyPovertyR} | R Documentation |
Fuzzy predicate poverty estimation
Description
This function takes as input a numeric vector representing a predicate variable and turns it into its equivalised version using different equivalence scales.
Usage
eq_predicate(predicate, ncomp, age, scale.eq, newscale)
Arguments
predicate |
A numeric vector representing the poverty predicate (i.e. income or expenditure) |
ncomp |
A numerical vector of the total number of components for the j-th family. |
age |
A numerical vector of the number of components for the j-th family less than 16 years-old |
scale.eq |
The equivalence scale. Options are: Carbonaro, n.par (non parametric), OECD7050, modifiedOECD or new |
newscale |
a data.frame with two columns: "ncomp" defining the number of components and "s.eq" that define the corresponding |
Value
A data.frame containing the equivalised predicate variable.
Examples
aa=runif(100, 0, 1000) # predicate
ncomp=rep(c(1,3,5,7,4),20) #n componenti
age16=ncomp-1 #componenti < 16
eq_predicate(predicate=aa, ncomp=ncomp, scale.eq="carbonaro") #carbonaro
eq_predicate(predicate=aa, ncomp=ncomp, scale.eq="n.par") #non-parametric
eq_predicate(predicate=aa, ncomp=ncomp, age=age16, scale.eq="OECD7050") #OECD7050
eq_predicate(predicate=aa, ncomp=ncomp, age=age16, scale.eq="modifiedOECD") #modifiedOECD
newscal=data.frame("ncomp"=c(1:9), "s.eq"=runif(9,1,10)) # new
ncomp=rep(c(10,3,5,7,4),20)
eq_predicate(predicate=aa, ncomp=ncomp,scale.eq="new", newscale=newscal)
[Package FuzzyPovertyR version 2.0.1 Index]