1 | algo_leverage(xi, yi, r = floor(0.2 * length(yi)))
|
xi |
independent variables |
yi |
response variable |
r |
the sampling size,default=20 |
beta,the estimated regression coefficients implements algorithmic leveraging for linear regression using uniform and leverage score based on subsampling of rows x <- matrix(rnorm(500),100,5) y <- x%*%rep(-1,5)+rnorm(100) algo_leverage(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.