an R package for "sum of single effects" regression
This is very much work in progress, and the interface will likely change under you! If you want to use it, I recommend you contact me at [email protected].
This fits a sparse linear regression model with up to
Here is a minimal example:
devtools::install_github("stephenslab/susieR")
set.seed(1)
n = 1000
p = 1000
beta = rep(0,p)
beta[1] = 1
beta[2] = 1
beta[3] = 1
beta[4] = 1
X = matrix(rnorm(n*p),nrow=n,ncol=p)
y = X %*% beta + rnorm(n)
res =susie(X,y,L=10)
coef(res)
plot(y,predict(res))
Take a look at the vignettes subdirectory for more examples.