powered by
Generate example circadian data with specified phase shift between groups
make_data( k = 0, k1 = 3, alpha = 10, alpha1 = 4, phi = 0, phi1 = 3.15, tau = 24, hours = 48, noise_sd = 0.1, seed = NULL )
data.frame
mesor of group 1.
change in mesor in group 2 from group 1.
amplitude rhythm for group 1.
change in amplitude in group 2 from group 1
phase of rhythm, in radian-hours, in group 1.
change in phase, in radian-hours, in group 2 from group 1
period of the rhythm, shared between both groups.
the number of hours/datapoints to sample.
the standard deviation of the noise term.
random seed for generating data.
data <- make_data(k1 = 3, alpha1 = 4, phi1 = 6)
Run the code above in your browser using DataLab