Learn R Programming

simulatorZ (version 1.6.0)

masomenos: 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

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

Run this code


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


Run the code above in your browser using DataLab