Description Usage Arguments Value Examples
Implements algorithmic leveraging for linear regression using uniform or
leverage score based subsampling of rows, i.e, fit y = X beta + E
.
1 2 | algo_leverage(X, y, samplePct = 0.1, sampSize = floor(samplePct *
length(y)), sampleType = "Lev")
|
X |
The covariates matrix |
y |
The response vector |
samplePct |
The percentage of subsamples |
sampSize |
Number of subsamples |
sampleType |
The type of subsampling rows |
The coefficient vector beta
.
1 | algo_leverage(matrix(rnorm(1000), nrow = 100), rnorm(100), sampleType = 'Unif')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.