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

Description Usage Arguments Details Value Note

View source: R/pseudovalidationR.R

Description

Performs ‘pseudovalidation’ to select the best λ value in lassosum (without PLINK bfile)

Usage

1
pseudovalidationR(genotype.mat, beta, cor)

Arguments

genotype.mat

A genotype matrix (coded 0/1/2)

beta

The matrix of estimated βs

cor

The vector of correlations (r)

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.