snp_lassosum2 | R Documentation |
lassosum2
snp_lassosum2(
corr,
df_beta,
delta = c(0.001, 0.01, 0.1, 1),
nlambda = 30,
lambda.min.ratio = 0.01,
dfmax = 2e+05,
maxiter = 1000,
tol = 1e-05,
ind.corr = cols_along(corr),
ncores = 1
)
corr |
Sparse correlation matrix as an SFBM.
If |
df_beta |
A data frame with 3 columns:
|
delta |
Vector of shrinkage parameters to try (L2-regularization).
Default is |
nlambda |
Number of different lambdas to try (L1-regularization).
Default is |
lambda.min.ratio |
Ratio between last and first lambdas to try.
Default is |
dfmax |
Maximum number of non-zero effects in the model.
Default is |
maxiter |
Maximum number of iterations before convergence.
Default is |
tol |
Tolerance parameter for assessing convergence.
Default is |
ind.corr |
Indices to "subset" |
ncores |
Number of cores used. Default doesn't use parallelism.
You may use |
A matrix of effect sizes, one vector (column) for each row in
attr(<res>, "grid_param")
. Missing values are returned when strong
divergence is detected.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.