Performs serial section analysis of rhythmic data and fits non-stationary cosinor models.
ssections(data, time, period, interval, increment, na.action = na.omit,
alpha = 0.05)A data frame containing responses of subjects collected over time, with subjects in the rows and timepoints in the columns.
A vector containing the times at which the data was collected.
Duration of one cycle of rhythm.
Length of an interval (number of timepoints) on which cosinor analyses will be ran.
A number indicating for how much timepoints should the interval be displaced throughout the data. Note that the value of the increment cannot be higher than the value of the interval.
Action to be performed on missing values. Defaults to na.omit.
Significance level for calculating population cosinor parameters confidence intervals. Defaults to .05 (confidence intervals are 5% risk intervals).
Object of the Serial sections class containing the following objects:
coefficientsCosinor coefficients in each of the intervals.
emp.meanEmpirical mean of the data across all timepoints.
p-valuesp-values from the rhythm detection test in each interval.
cosinorsA list containing all cosinor objects calculated in each interval.
plotsStacked plots showing the empirical data, cosinor parameters and their confidence intervals, p-values of the rhythm detection test and number of measurements across time.
Corn<U+00E9>lissen (2014) describes procedures for rhythmometric analysis of non-stationary data. First, an interval of an user-specified length (\(I\)) is chosen and usual cosinor analysis (i.e. single cosinor or population-mean cosinor) is performed on the interval. The interval is then displaced throughout the data by an user-specified increment (\(\Delta t\)) and cosinor analysis is then performed on the new interval. Intervals can be overlapping (\(\Delta t\)<I) or non-overlapping (\(\Delta t\)=I). A rhythm detection test is also calculated in each interval. After values of cosinor parameters have been obtained for each interval, they and their confidence intervals can be plotted, along with the p-values from the rhythm detection test.
Corn<U+00E9>lissen, G. (2014). Cosinor-Based Rhythmometry. Theoretical Biology and Medical Modeling, 11, Article 16.
# NOT RUN {
ssections(data = PANAS_november, time = PANAS_time, period = 7,
interval = 7, increment = 1)
# }
Run the code above in your browser using DataLab