asv_best_PC_df: Return best number of PCs in terms of lambda_GC following...

Description Usage Arguments Value

View source: R/pvdiv_gwas.R

Description

Given a dataframe created using pvdiv_lambda_GC, this function returns the lambda_GC that is closest to 1 for each column in the dataframe.

Usage

1

Arguments

df

Dataframe of phenotypes where the first column is NumPCs and subsequent column contains lambda_GC values for some phenotype.

Value

A dataframe containing the best lambda_GC value and number of PCs for each phenotype in the data frame.


Alice-MacQueen/switchgrassGWAS documentation built on Jan. 23, 2022, 7:55 p.m.