Description Usage Arguments Value
Leverage- or Uniform-subsample estimates for simple linear regression
1 | algo_leverage(x, y, r, method = "leverage")
|
x |
Independent variable. |
y |
Dependent variable. |
r |
Size of subsample. |
method |
Method, one of "uniform" or "leverage". |
List containing estimates of intercept and slope, along with samp
, the indices of the rows used in the subsample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.