lmCSmat: Cosinor

Description Usage Arguments Details Value Author(s) Examples

View source: R/stats.R

Description

Fixed period cosinor ("harmonic regression") on each row of a matrix

Usage

1
lmCSmat(x, zts, per = 24)

Arguments

x

- numeric data matrix

zts

- numeric vector of length ncol(data) representing time points for each data column

per

- period of oscillations (default=24)

Details

Fits a cosinor model to each row of a matrix.

Value

data frame with the following estimated statistics:

Author(s)

Karolis Koncevi<c4><8d>ius

Examples

1
2
3
4
5
6
## Not run: 
tmpData <- matrix(rnorm(24 * 1000), ncol = 24)
tmpData[sample(length(tmpData), nrow(tmpData))] <- NA
lmCSmat(tmpData, 1:24, 24)

## End(Not run)

DiscoRhythm documentation built on Nov. 8, 2020, 7:32 p.m.