Description Usage Arguments Details Value Note
View source: R/pseudovalidation.R
Performs ‘pseudovalidation’ to select the best λ value in lassosum
1 2 3 |
bfile |
A plink bfile stem |
beta |
The matrix of estimated βs |
cor |
The vector of correlations (r) |
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(λ)=β'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(λ)
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.