popmid: Population midpoints

Description Usage Arguments Value

View source: R/popmid_fun.R

Description

popmid calculates the cumulative midpoints for population percentiles that can then be used as the predictor in the OLS model for calculating the slope, i.e. the slope index of inequality (SII). For internal use within the rii function.

Usage

1
popmid(x)

Arguments

x

Vector of population distribution that sums to 1.

Value

A vector of population midpoints.


m-allik/SocEpi documentation built on May 23, 2020, 8:02 p.m.