prepCoxKM: KM for Survival Traits in GWAS Data (fit null model)

Description Usage Arguments Value

View source: R/prepCoxKM.R

Description

This function (CoxKM) is used to perform KM analysis (Chen et al., 2014) for survival traits in GWAS data

Usage

1
2
3
4
5
6
7
8
9
prepCoxKM(
  Z,
  formula,
  SNPInfo = NULL,
  snpNames = "Name",
  aggregateBy = "gene",
  data = parent.frame(),
  verbose = FALSE
)

Arguments

Z

A matrix of genotypes (class: matrix). rows correspond to individuals and columns correspond to SNPs. Use ’NA’ for missing values. The column names of this matrix should correspond to SNP names in the SNP information file.

formula

Base formula under null hypothesis (class: formula). For Cox models, the formula follows that of the coxph() function.

SNPInfo

SNP Info file (class: data.frame). Must contain fields given in ’snpName’ and ’aggregateBy’.

snpNames

The field of SNPInfo where the SNP identifiers are found. (Default="Name")

aggregateBy

The field of SNPInfo on which the skat results were aggregated. (Default="gene")

data

The data file in which to find variables in the formula (class: data.frame).

verbose

Whether or not to print the progress bar (class: logical).

Value

output: object as input for FbKM


KMgene documentation built on July 8, 2020, 6:09 p.m.

Related to prepCoxKM in KMgene...