masomenos: masomenos

Description Usage Arguments Value Author(s) References Examples

Description

function for Mas-o-menos algorithm

Usage

1
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

...

Value

return the coefficients

Author(s)

Yuqing Zhang, Christoph Bernau, Levi Waldron

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
set.seed(8)


library(curatedOvarianData)


data( E.MTAB.386_eset )


eset <- E.MTAB.386_eset[1:100, 1:30]


rm(E.MTAB.386_eset)





X <- t(exprs(eset))





time <- eset$days_to_death


cens <- sample(0:1, 30, replace=TRUE)


y <- Surv(time, cens)





beta <- masomenos(X=X, y=y)


beta

zhangyuqing/simulatorZ documentation built on Oct. 21, 2020, 1:05 a.m.