alysonvanraalte / LifeIneq

An R-package to calculate measures of lifespan variation from a life table
7 stars 6 forks source link

abridged age issue with ineq_gini() #11

Closed timriffe closed 1 year ago

timriffe commented 1 year ago

@alysonvanraalte We should somehow generalize calculations for the gini

ineq_gini(LT$age,LT$lx,LT$ex,LT$ax)
ineq_gini(LTabr$age5,LTabr$lx5,LTabr$ex5,LTabr$ax5)

The abridged version gives back all 0s.

By extension same story with ineq_aid()