Description Usage Arguments Value Examples
Weighted leveraging Regression
1 | algo_leverage(y, x, r, method)
|
y |
response variable |
x |
input matrix, of dimension nobs x nvars; each row is an observation vector |
r |
number of subsamples |
method |
"weighted" or "unif" |
a fitted linear regression
1 2 3 4 5 | n=500
x<-rt(500,df=6)
noise<-rnorm(500)
y<--x+noise
algo_leverage(y,x,r=100,method="weighted")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.