This function (CoxKM) is used to perform KM analysis (Chen et al., 2014) for survival traits in GWAS data
prepCoxKM(
Z,
formula,
SNPInfo = NULL,
snpNames = "Name",
aggregateBy = "gene",
data = parent.frame(),
verbose = FALSE
)
A matrix of genotypes (class: matrix). rows correspond to individuals and columns correspond to SNPs. Use <U+2019>NA<U+2019> for missing values. The column names of this matrix should correspond to SNP names in the SNP information file.
Base formula under null hypothesis (class: formula). For Cox models, the formula follows that of the coxph() function.
SNP Info file (class: data.frame). Must contain fields given in <U+2019>snpName<U+2019> and <U+2019>aggregateBy<U+2019>.
The field of SNPInfo where the SNP identifiers are found. (Default="Name")
The field of SNPInfo on which the skat results were aggregated. (Default="gene")
The data file in which to find variables in the formula (class: data.frame).
Whether or not to print the progress bar (class: logical).
output: object as input for FbKM