lmCSmat | R Documentation |
Fixed period cosinor ("harmonic regression") on each row of a matrix
lmCSmat(x, zts, per = 24)
x |
- numeric data matrix |
zts |
- numeric vector of length ncol(data) representing time points for each data column |
per |
- period of oscillations (default=24) |
Fits a cosinor model to each row of a matrix.
data frame with the following estimated statistics:
acrophase - acrophases
amplitude - amplitudes
Rsq - r-squared values
pvalue - p-values
mesor - intercept coefficient
sincoef - sine coefficient
coscoef - cosine coefficient
Karolis Koncevičius
## Not run: tmpData <- matrix(rnorm(24 * 1000), ncol = 24) tmpData[sample(length(tmpData), nrow(tmpData))] <- NA lmCSmat(tmpData, 1:24, 24) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.