reg.: Population-level regression

Description Usage Arguments Value

Description

Regression of one vector on another in a bivariate population.

Usage

1
reg.(y, x, p)

Arguments

x

A numeric vector giving the independent variable of the population.

y

A numeric vector giving the dependent variable of the population.

p

An optional vector of weights. If missing, equal weights are used.

Value

The regression of y and x.


popmoments documentation built on May 2, 2019, 5 p.m.