best.lag
computes the best lags for a dataset using weighted correlation.
The lags obtained are in reference to the original timepoints.
best.lag(data, timepoints, max.lag = NULL, C)
data | a matrix or data frame with rows representing genes and columns
representing different timepoints. If data is a data frame, the gene names
can be specified using the |
---|---|
timepoints | a vector of time points used in the dataset |
max.lag | a numeric value of the maximum lag allowed, if null, defaults to the floor of the number of timepoints divided by 4 |
C | a numeric value of C used in computing weighted correlation |
a vector of best lags used in the dataset, one per gene
#> [1] 0 0 0 0#> [1] 0 -1 1 0 0#> [1] -1 -1 0 1 0