time2data: Classification-based quantitative SILAC analysis

Description Usage Arguments Details Value Author(s) References Examples

Description

finding differentially expressed proteins using classification methods

Usage

1
time2data(tvar,tcov,data,na.time=c("remove","censor"),verbose=FALSE,weights=NULL)

Arguments

tvar

a vector of time-to-event response variables' names as a pair of 'time to event' and 'status'.

tcov

a vector of time-to-event covariates' names as a pair of 'time to event' and 'status'.

data

a data.frame in which to interpret the variables named in the formula, or in the subset and the weights argument. The variables in tvar and tcov must be part of data.

na.time

a missing-data filter function for time-to-event covariates. The option 'remove' will remove all the data with 'NA', while the option 'censor' will treat the missing data as censored and then replace with the logest time. Default is 'remove'.

verbose

logical. Should R report extra information on progress? Default is 'FALSE'.

weights

vector of case weights. For a thorough discussion of these see the book by Therneau and Grambsch. Default is 'NULL'.

Details

It will restructure the data according to time-to-event covariates. After converting, the time-to-event response variable will be formulated as interval censored data and its structure will be 'start', 'end', and 'status'.

Value

data

restructured data by time-to-event data as covariates. The time-to-event response variable will be structured as interval censored data as the form of 'start','end', and 'status'.

wt

restructed weights

Author(s)

Seongho Kim

References

S. Kim (2016). time2event: an R package for the analysis of event time data with time-to-event data as covariates. Wayne State University/Karmanos Cancer Institute. Manuscript.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  data(pegvhd)

  # convert to data with time-to-event data as covariates
  # os with cgvhd
  tos1data = time2data(c("os.t","os.s"),c("gvhd.t","gvhd.s","pe.t","pe.s"),pegvhd)$data

  data(bmtelder)

  # convert to data with time-to-event data as covariates
  # os with cgvhd
  tos2data = time2data(c("os.t","os.s"),c("cgvhd.t","cgvhd.s"),bmtelder)$data

  # nrm with cgvhd
  tnrm2data = time2data(c("nrm.t","nrm.s"),c("cgvhd.t","cgvhd.s"),bmtelder)$data

time2event documentation built on May 2, 2019, 1:46 p.m.