beta will calculate the slope of an OLS regression using matrix algebra.
This will be the Slope Index of Inequality (SII). Weighted least squares slope is calculated
when weights are supplied.
Usage
beta(x, y, w = NULL)
Arguments
x
Population distribution.
y
Standardized rates for calculation.
w
Weight for weighted least squares regression, default NULL.