Arguments
data
A data frame or matrix of observed values with the time of day as the first value (unless specified in code
code
Time of day of measurements
period
Although time of day is assumed to have a 24 hour rhythm, other rhythms may be fit.
angle
A vector, matrix, or data frame of phase angles (either as hours or as radians).
hours
If TRUE, measures are in 24 hours to the day, otherwise, radians
x
A set of external variables to correlate with the phase angles