lmCSmatNoNA: Cosinor Without NA Values

View source: R/stats.R

lmCSmatNoNAR Documentation

Cosinor Without NA Values

Description

Fixed period cosinor on each row of a matrix with no missing values.

Usage

lmCSmatNoNA(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 that has no NA values.

Value

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

Author(s)

Karolis Koncevičius

Examples

## Not run: 
tmpData <- matrix(rnorm(24 * 1000), ncol = 24)
lmCSmat(tmpData, 1:24, 24)

## End(Not run)

matthewcarlucci/DiscoRhythm documentation built on March 24, 2022, 10:22 a.m.