algo_leverage: Leverage- or Uniform-subsample estimates for simple linear...

Description Usage Arguments Value

Description

Leverage- or Uniform-subsample estimates for simple linear regression

Usage

1
algo_leverage(x, y, r, method = "leverage")

Arguments

x

Independent variable.

y

Dependent variable.

r

Size of subsample.

method

Method, one of "uniform" or "leverage".

Value

List containing estimates of intercept and slope, along with samp, the indices of the rows used in the subsample.


DavidJamesKent/stsci6520_hw2 documentation built on May 26, 2019, 12:30 a.m.