Description Usage Arguments Details Value Note
View source: R/pseudovalidationR.R
Performs ‘pseudovalidation’ to select the best λ value in lassosum (without PLINK bfile)
1 | pseudovalidationR(genotype.mat, beta, cor)
|
genotype.mat |
A genotype matrix (coded 0/1/2) |
beta |
The matrix of estimated βs |
cor |
The vector of correlations (r) |
A function to calculate
f(λ)=β'r/√{β'X'Xβ}
where X is the standardized genotype matrix divided by √ n, and r is a vector of (shrunken) correlations.
the results of the pseudovalidation, i.e. f(λ)
The number of rows in beta
and the length of cor
should be the
same as the number of columns in genotype.mat
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.