pseudovalidation: Performs 'pseudovalidation' to select the best lambda value...

Description Usage Arguments Details Value Note

View source: R/pseudovalidation.R

Description

Performs ‘pseudovalidation’ to select the best λ value in lassosum

Usage

1
2
3
pseudovalidation(bfile, beta, cor, sd = NULL, keep = NULL,
  extract = NULL, exclude = NULL, remove = NULL, chr = NULL,
  cluster = NULL, ...)

Arguments

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 cluster object from the parallel package for parallel computing

Details

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.

Value

the results of the pseudovalidation, i.e. f(λ)

Note


tshmak/lassosum documentation built on Sept. 24, 2020, 9:41 a.m.