masomenos {simulatorZ}R Documentation

masomenos

Description

function for Mas-o-menos algorithm

Usage

masomenos(X, y, option = "fast", ...)

Arguments

X

matrix with rows corresponding to subjects and columns to features resp

y

response variable, a data.frame, matrix, or Surv object: c(time, event)

option

whether to use C or R code to fit the marginal Cox models

...

other arguments

Value

return the coefficients

Author(s)

Tim Triche, Jr.

References

Zhao, S., Huttenhower, G. P. C., and Waldron, L. (2013). Mas-o-menos: a simple sign averaging method for discrimination in genomic data analysis. http://biostats.bepress.com/harvardbiostat/paper158/. Accessed: 2013-10-24.

Examples

set.seed(8)
library(curatedOvarianData)
data( E.MTAB.386_eset )
eset <- E.MTAB.386_eset[1:100, 1:30]

X <- t(exprs(eset))

time <- eset$days_to_death
cens <- sample(0:1, 30, replace=TRUE)
y <- Surv(time, cens)

beta <- masomenos(X, y)
beta

[Package simulatorZ version 1.14.0 Index]