View source: R/pseudovalidation.R
pseudovalidation | R Documentation |
\lambda
value in lassosumPerforms ‘pseudovalidation’ to select the best \lambda
value in lassosum
pseudovalidation(
bfile,
beta,
cor,
sd = NULL,
keep = NULL,
extract = NULL,
exclude = NULL,
remove = NULL,
chr = NULL,
cluster = NULL,
...
)
bfile |
A plink bfile stem |
beta |
The matrix of estimated |
cor |
The vector of correlations ( |
sd |
The standard deviation of the SNPs |
keep |
samples to keep |
extract |
SNPs to extract |
exclude |
SNPs to exclude |
remove |
samples to remove |
chr |
a vector of chromosomes |
cluster |
A |
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)
Missing genotypes are interpreted as having the homozygous A2 alleles in the
PLINK files (same as the --fill-missing-a2
option in PLINK).
The number of rows in beta
and the length of cor
should be the same as the number of
SNPs in the bfile after extract/exclude/chr.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.