ActCosinor {ActCR}  R Documentation 
A parametric approach to study circadian rhythmicity assuming cosinor shape.
ActCosinor(x, window = 1)
x 

window 
The calculation needs the window size of the data. E.g window = 1 means each epoch is in oneminute window. 
A list with elements
mes 
MESOR which is short for midline statistics of rhythm, which is a rhythm adjusted mean. This represents mean activity level. 
amp 
amplitude, a measure of half the extend of predictable variation within a cycle. This represents the highest activity one can achieve. 
acro 
acrophase, a meaure of the time of the overall high values recurring in each cycle. Here it has a unit of radian. This represents time to reach the peak. 
acrotime 
acrophase in the unit of the time (hours) 
ndays 
Number of days modeled 
Cornelissen, G. Cosinorbased rhythmometry. Theor Biol Med Model 11, 16 (2014). https://doi.org/10.1186/174246821116
count1 = c(t(example_activity_data$count[1,c(1,2)])) cos_coeff = ActCosinor(x = count1, window = 1)