Description Usage Arguments Value Author(s)
View source: R/algo_leverage.R
A function that applies the method mentioned by (Ma, 2014) to do a leveraging through two sampling methods, the uniform sampling and weighted sampling
1 | algo_leverage(y, X, size = NA, draws = NA, method = "weighted")
|
y |
The constant vector |
X |
The regressor |
size |
Sample size of leveraging sampling. |
draws |
Number of draws of subsample |
method |
The method to implement, can be weighted leveraging and uniform leveraging. Default is "weighted". Details of the difference of the |
The leverage solution to the linear regressioin problem.
Xiaohan Wang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.