scadsumR | R Documentation |
Function to obtain SCAD estimates of a regression problem given summary statistics and a reference panel (without PLINK bfile)
scadsumR(
cor,
refpanel,
lambda = exp(seq(log(0.001), gamma = 3.7, log(0.1), length.out = 20)),
shrink = 0.9,
ridge = F,
thr = 1e-04,
init = NULL,
trace = 0,
maxiter = 10000,
blocks = NULL
)
cor |
A vector of correlations ( |
refpanel |
reference panel as |
lambda |
A vector of |
shrink |
The shrinkage parameter |
ridge |
Produce ridge regression results also (slow if nrow(refpanel) > 2000) |
thr |
convergence threshold for |
init |
Initial values for |
trace |
An integer controlling the amount of output generated. |
maxiter |
Maximum number of iterations |
blocks |
A vector to split the genome by blocks (coded as c(1,1,..., 2, 2, ..., etc.)) |
gamma |
The tuning parameter |
A function to find the minimum of \beta
in
f(\beta)=\beta'R\beta - 2\beta'r + 2\rho_{scad}(\beta;\lambda,\gamma)
where
R=(1-s)X'X/n + sI
is a shrunken correlation matrix, with X
being standardized reference panel.
s
should take values in (0,1]. r
is a vector of correlations.
A list with the following
lambda |
same as the lambda input |
gamma |
same as the gamma input |
beta |
A matrix of estimated coefficients |
conv |
A vector of convergence indicators. 1 means converged. 0 not converged. |
pred |
|
loss |
|
fbeta |
|
sd |
The standard deviation of the reference panel SNPs |
shrink |
same as input |
nparams |
Number of non-zero coefficients |
ridge |
ridge regression estimates |
Missing values in refpanel
are filled with 0.
Unlike lassosum, we do not provide the options keep/remove/extract/exclude. It is thus up to the user to ensure the SNPs in the reference panel corresponds to those in the correlations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.