dominant.freqs {GeneTS} | R Documentation |
dominant.freqs
returns the m dominant frequencies (highest peaks)
in each of the periodogram computed for the individual time series.
dominant.freqs(x, m=1, ...)
x |
multivariate (genetic) time series (each column of this matrix corresponds to a separate variable/time series), or a vector with a single time series |
m |
number of dominant frequences |
... |
arguments passed to periodogram |
A matrix (or vector, if only 1 time series is considered) with the dominant frequencies. In a matrix, each column corresponds to one time series.
Konstantinos Fokianos (http://www.ucy.ac.cy/~fokianos/) and Korbinian Strimmer (http://www.statistik.lmu.de/~strimmer/).
# load GeneTS library library("GeneTS") # load data set data(caulobacter) # how many samples and how many genes? dim(caulobacter) # first three dominant frequencies for each gene dominant.freqs(caulobacter, 3) # first four dominant frequencies for gene no. 1000 dominant.freqs(caulobacter[,1000], 4)