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

Usage Arguments Details Value Note

View source: R/pseudovalidationR.R

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


kulmsc/modLassosum documentation built on May 5, 2019, 9:19 a.m.