smoothCoxph: Plots the Cox proportional hazard smoothed by gene expression...

Description Usage Arguments Author(s) Examples

View source: R/smoothCoxph.R

Description

Builds a plot showing how hazard behaves over different levels of expression of a given gene. Confidence intervals are also provided.

Usage

1
smoothCoxph(time, event, x, xlim, ylim, xlab, ylab, logrisk=TRUE, ...)

Arguments

time

variable where time to survival is stored.

event

variable where survival event is stored.

x

numeric containing the expression levels of a given gene.

xlim

xlim for the plot.

ylim

ylim for the plot.

xlab

xlab for the plot.

ylab

ylab for the plot.

logrisk

logrisk if we want to compute risk or logrisk estimates. By default this is TRUE, which has a better behaviour under small sample sizes.

...

other arguments that will be passed to plot.

Author(s)

David Rossell.

Examples

1
2
3
4
5
#load eset
data(eset)

#make plot
smoothCoxph(pData(eset)$Months2Relapse,pData(eset)$Relapse,exprs(eset)[25,])

phenoTest documentation built on Nov. 8, 2020, 7:53 p.m.