Learn R Programming

SocEpi (version 1.0.0)

popmid: Population midpoints

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

popmid(x)

Arguments

x

Vector of population distribution that sums to 1.

Value

A vector of population midpoints.