TimeMin: Identify Time Points Mapping to 0 and 1

Description Usage Arguments Value Examples

View source: R/TC_CAR1.R

Description

This function is to identify which time points mapped to 0 and 1 based on the estimated correlations of observations between all pairs of time points. The correlation parameters are estimateed by fitting voomgls_Symm to the voom transformed data.

Usage

1
TimeMin(v, Subject, Time, ncores)

Arguments

v

output of voom function.

Subject

a vector of subjects or experimental units.

Time

a vector of time points.

ncores

number of cores for embarrassingly parallel procedure. Default value of ncores is 1.

Value

a vector of 2 components correspinding to the two time points that are mapping to 0, 1, respectively.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(res)
data(covset)
v <- res$ori.res$v
v$E <- v$E[1:2,]
v$weights <- v$weights[1:2,]
Subject <- covset$ear
Time <- covset$time
ncores <- 1
TimeMinout <- rmRNAseq:::TimeMin(v, Subject, Time, ncores)
TimeMinout

rmRNAseq documentation built on Nov. 8, 2019, 5:06 p.m.