SelectSigPCs: SelectSigPCs

SelectSigPCsR Documentation

SelectSigPCs

Description

This function is to run regression (linear/logistic) based on the number of PCs, and characteristics of samples.

Usage

SelectSigPCs(BetaPCA, Sample, pheno, is_continuous = F)

Arguments

BetaPCA,

a dataframe, combined PCs and meta data

Sample

sample/donor name

pheno

phenotype to compare, binary e.g. diseaseStat; continuous e.g. BMI

is_continuous

T or F, if pheno is cpontinuous

Value

a dataframe: PC_number, PC, PC_pval, ordered by PC_pval

Examples

sigPCs <- SelectSigPCs(BetaPCA, Sample, pheno, is_continuous=F)

chenweng1991/RePACT documentation built on Aug. 28, 2023, 6:28 p.m.