R/limorhyde.R
getCosinorBasis.Rd
Generate basis matrix for cosinor regression.
getCosinorBasis(x, period, intercept)
Values of the predictor variable.
Period for the predictor variable.
If TRUE, a column of ones will be included in the basis.
TRUE
A matrix with a row for each value of x and a column for each component of the decomposition.
x
b = getCosinorBasis(seq(0, 20, 4), period = 24, intercept = FALSE)