View source: R/pseudovalidationR.R
pseudovalidationR | R Documentation |
\lambda
value in
lassosum (without PLINK bfile)Performs ‘pseudovalidation’ to select the best \lambda
value in
lassosum (without PLINK bfile)
pseudovalidationR(genotype.mat, beta, cor)
genotype.mat |
A genotype matrix (coded 0/1/2) |
beta |
The matrix of estimated |
cor |
The vector of correlations ( |
A function to calculate
f(\lambda)=\beta'r/\sqrt{\beta'X'X\beta}
where X
is the standardized genotype matrix divided by \sqrt n
,
and r
is a vector of (shrunken) correlations.
the results of the pseudovalidation, i.e. f(\lambda)
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.