beta: Slope of an OLS regression

Description Usage Arguments Value

View source: R/beta_fun.R

Description

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

1
beta(x, y, w = NULL)

Arguments

x

Population distribution.

y

Standardized rates for calculation.

w

Weight for weighted least squares regression, default NULL.

Value

Slope of an OLS regression.


SocEpi documentation built on July 2, 2020, 1:07 a.m.