mf.survggplot: Survival analysis on specified SNPs as arguments

Description Usage Arguments

View source: R/mf.survggplot_res.R

Description

Survival analysis on specified SNPs as arguments

Usage

1
2
3
4
5
6
7
8
mf.survggplot(
  data = data_01,
  SNPs = c("rs6755005", "rs10428132"),
  gt = list(c("AA", "GA", "GG"), c("GG", "GT", "TT")),
  gt_levels = list(c("AA", "GA", "GG"), c("GG", "GT", "TT")),
  surv = c("time", "status"),
  cov = NULL
)

Arguments

data

A data.frame-class object with column of SNPs

SNPs

A character vector of SNPs to be included as covariates of Cox PH surv model.

gt

A list of character vectors to specify genotypes of the SNPs. Each vector for each SNP. The order of the vectors should be co with those of argument 'SNPs'.

surv

A charactor vector to specify the colnames of time and status arguments to survival::Surv().

cov

A character vector to specify column for covariate.

ge_levels

A list of character vectors to specify the levels of the genotypes, e.g., c('AA', 'AG', 'GG') or c(0, 1, 2) or c(0, 0, 1).

first

Logical.


mrmtshmp/ExploratoryDataAnalysis documentation built on Oct. 6, 2020, 8 a.m.