Description Usage Arguments Details
Function to validate output from lassosum.pipeline with external phenotype
1 2 3 4 5 6 7 8 | validate(...)
## S3 method for class 'lassosum.pipeline'
validate(ls.pipeline, test.bfile = NULL,
keep = NULL, remove = NULL, pheno = NULL, covar = NULL,
validate.function = function(x, y) cor(x, y, use = "complete"),
trace = 1, destandardize = F, plot = T, exclude.ambiguous = T,
cluster = NULL, rematch = !is.null(test.bfile), ...)
|
... |
parameters to pass to |
ls.pipeline |
A lassosum.pipeline object |
test.bfile |
The (PLINK bfile for the test dataset |
keep |
Participants to keep (see |
remove |
Participants to remove |
pheno |
A vector of phenotype OR a |
covar |
A matrix of covariates OR a |
validate.function |
Function with which to perform validation |
trace |
Controls amount of output |
destandardize |
Should coefficients from |
plot |
Should the validation plot be plotted? |
exclude.ambiguous |
Should ambiguous SNPs (C/G, A/T) be excluded? |
cluster |
A |
rematch |
Forces a rematching of the ls.pipline beta's with the new .bim file |
Chooses the best lambda
and s
by validating
polygenic score against an external phenotype in the testing dataset.
If pheno
is not specified, then the sixth column in the testing
dataset .fam.fam
file is used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.