Professional Documents
Culture Documents
TECHNICAL NOTE
BOURDON L, BUGUET A, CUCHERAT M, RADOMSKI MW. Use of a Computer programs have been developed (3,7) to per
spreadsheet program for circadian analysis of biological/ph ysiologi form cosinor analysis of 24-h data, but few are easily
cat data. Aviat Space Environ Med 1995; 66:787—91.
Biological/physiological data sampled over a period of 24 h can be accessible to the general physiologist without significant
subjected to a mathematical analysis to determine the presence of circa mathematical or computer support, and none is inte
dian rhythmicity. Several procedures have been proposed, most being grated into an easy-to-use and readily-available statisti
complex. To render such an analysis simpler and easy to use by non- cal package on a personal computer. Because of their
mathematicians, we developed and tested the cosinor technique using
a commonly available commercial spreadsheet (Excel®). It can be used
simplicity, spreadsheet programs are extensively used in
to analyze equally or unequally time-spaced data over 24 h with missing handling and analyzing scientific data (6,10). In this pa
data, as well as to calculate the significance and the main limit of per, we describe the use of a commercially available
the resultant circadian rhythm (mesor, amplitude, acrophase and their spreadsheet program (Microsoft Excel®) for the analysis
confidence limits). Examples of its application to hourly samples of of two simplified single-cosinor models of circadian data.
plasma cortisol and minute-by-minute rectal temperatures are shown.
This spreadsheet program has been used in our labora
tories to analyze evenly time-spaced data by conven
ARIOUS PHYSIOLOGICAL functions follow rhyth
V mic variations. The mathematical approach to these
rhythms is often complex. Several methods have been
tional calculations (5,8), as well as unevenly spaced time
samples by using the solver function of the spreadsheet.
Our program only requires a simple knowledge of
proposed. The first mathematical analysis used by chro spreadsheet applications.
nobiologists to analyze for circadian rhythms in experi
mental data collected over 24 h was the cosinor tech
Methods
nique, in which the data are represented by the best fit
ting cosine function using the “least squares” calculation The analysis of 24-h rhythms with the cosinor tech
(5,9). The main limitation of this technique results from nique implies that the data are best fitted by a sine curve
the assumption that the studied rhythm fits a sine curve. (3,8), following the equation:
To overcome this limitation, more powerful procedures
were perfected (1—3). Unfortunately, those procedures yi = M + Asin(wti + q,) Eq. 1
are not easy for non-mathematicians to use. Moreover,
where:
accuracy of the rhythm parameters is not always re
• yi is the value of the measured variable at time t1;
quired to have an overview of a time series or to assess
• M is the mean 24-hour value, or mesor, of y through
the effect of a rhythm on the interpretation of statistical
out a complete cycle;
measurements (4). In such cases, the single-cosinor tech
nique may still provide useful information on biological
rhythms (9). From the Centre de recherches du Service de sante des armées Emite
The resultant characteristics produced by such an anal Fardé, BP 87, F-38702 La Tronche Cedex, France (L. Bourdon, A. Buguet,
ysis are as follows: M. Cucherat); and Defence and Civil Institute of Environmental Medi
cine, P.O. Box 2000, North York, Ontario, M3M 3B9, Canada (M. W.
• the ‘mesor’ or 24-h mean value of the data around Radomski).
which the curve oscillates; This manuscript was received for review in April 1994. It was revised
• the ‘amplitude’ of the cosine curve on either side of in October and November and accepted for pubtication in November
the mesor; and 1994.
Address reprint requests to: Dr. L. Bourdon, CRSSA-BEE, BP 87,
• the ‘acrophase’ of the curve which is the time at 38702 La Tronche Cedex, France.
which the highest value encountered in the cycle Reprint & Copyright © by Aerospace Medical Association, Mexan
occurs. dria, VA.
Aviation, Space, and Environmental Medicine Vol. 66, No. 8 August 1995 787
PROGRAM FOR ANALYSIS Of RHYTHMS—BOURDON ET AL.
Al B IC ID lEt F I G IHI I I J I K C I M [ N I 01 P1 01 R IS
i C SPREADSHEET FOR COSINOR RHYTBMOMETRY
- RESULTS and STATISTICS CALCUI.ATION HEW
4
5 obs.
ConventIonal
caic.±confid.Iim,
Solver
caic.
I
Average = 208,175 208,175 3537,14 -1,2E-16 -3,5E-17 -20,6011 -65,4268 208,175
3537,14
-
• A is the amplitude of the sine curve on either side with: /3 = A cos (4)); y = —A sin (4)) and x1 = cos (w ti);
of M (half the difference between the highest and Zi = sin (w t)
-
lowest calculated values); Equation (3) is linear for /3 and y, and can be fitted to
• w is the angular frequency. When the cycle duration the experimental data by the conventional least-squares
is imposed (24-h for a circadian rhythm), w is con regression analysis. With the cosinor technique, and y
stant and equal to 2 H/N, with N equal to the num /3
can be directly calculated to minimize the mean distance
ber of units in a complete cycle (w = 2ir/24 in circa between each Y1 (measured data) and yi (calculated data)
dian rhythm if time is expressed in hours); [i.e., to minimize the residual sum of squares (RSS)J:
• 4) is the phase, expressed in trigonometric units;
• A4) is the acrophase or phase angle of the maximum RSS = [Yi — yil2 Eq. 4
value which can be transferred into clock-time (time
at which the highest value encountered in the cycle with n = number of observations throughout a complete
occurs); cycle.
The parameters to be calculated from this model are M, If the data have been obtained at regular intervals
A, and 4). throughout the cycle, M equals the mean value of all
To facilitate the application of this statistical model, data points, and /3 and y are given by simple equations
the above equation can be expressed as follows (9): (8):
y M + A cos (w cos () — A-sin (w t) -sin
‘
(4’) Eq. 2 M = [Y] /3 (2/n)- txi-Yi] -i’ = (2/n)’ [zi-Yi] Eq.5
which can be rewritten as:
In these conditions, A and A4) are deduced from the
yi = M + /3Xi + y.zi Eq. 3 equations defining /3 and y.
788 Aviation, Space, and Environmental Medicine • Vol. 66, No. 8 August 7995
PROGRAM FOR ANALYSIS OF RHYTHMS—BOURDON ET AL.
37,2 dence limits of A can be calculated from confidence limits
of 3 and y. When the samples are equally time-spaced,
the confidence area of these two parameters is a circular
area centered on the (/3, y) coordinates on a rectangular
37 (/3, y) and polar (A, 4)) representation of rhythm parame
ter estimates (8). This circular confidence area contains
0 all the points (/3*, y*) such as:
(4/n)a2Fi-, (13* 3)2 + (* y)2
—
Eq. 9 —
36,8
where fi- is the (1 a)th percentile of an F-distribution
—
with RSS obtained from equation (4). In the case of ded in the worksheet (Fig. 1) are shown in Fig. 3. To use
equally-spaced data, confidence limits of M will be: the solver function, the operator defines RSS as the target
M ± (tI—a/2)
(2/)l/2
Eq. 8
value which must be minimized and cells with M (G7),
A (G8) and 4) (R6) as the cells to be modified in the solver
where ti•-iz is the (1 a/2)th percentile of the t-disfribu
— box (Fig. 3). Then, he just has to click on the (Resolve)
tion for n 3 degrees of freedom (8). Therefore, confi
—
window. There should be no differences between the two
Aviation, Space, and Environmental Medicine • Vol. 66, No. S • August 1995 789
PROGRAM FOR ANALYSIS OF RHYTHMS—BOURDON ET AL.
AfBIcIDIEIFIGIHIIIJIKILIMINI0IPIQIRIS
‘t
- [ SPREADSHEET FOR COSINOR RUYTHMOMETRY J -
6 = f24 I P25 Max. value = f15 Mm. value = F16 Range = P19 4) =
3,44663
7 - Meant = F5 F6 ± I f3 1 208,18 — data Conventlonat method Solver method -
8 - Aniplic= P19 f28 ± F32 137,19 N° time darn calc.val. squar. calc.val. squar. -
12 F(2,21)= 3,47 RSS= F36 F37 3 2 110 F20 P22 Fl P2 F3]F4 f21 F23
13 - Fcalc.=! P40 a2=I P38 F39 4 3 91 P20 P22 Fl P2 F3 F4 F21 F23 -
II I I —
fig. 3. The spreadsheet is shown with the actual cell formulas tFx: [Exceix formulaj) embedded in a spreadsheet for calculation of the data shown
in Fig. 1. N is the number of units in a complete cycle, n is the number of samples, and x is the line number of the cell in the sheet. The formulae
are given in Appendix A.
techniques in the case of equally spaced data. In the case [=AVERAGE(K10:K[n+91)l F7: t=’AVERAGE(L10:Ltn+9])l — P8:
[=AVERAGE(M10:M[n+9J)J —‘ F9: [=AVERAGE(N30:Ntn+9])l —‘
of unequally spaced samples or missing data, the FlO: t=AVERAGE(O10:O[n+91)l —‘ Fli:
“solver” method is easier to use for a non-mathemati l=AVERAGE(P10:P[n+91)
cian. A similar version for Windows® (Microsoft Corpo —‘ P12: [=AVERAGE(Q10:Qln+9])l — F13:
ration) can be used exactly in the same way on IBM [=AVERAGE(R10:R[n+91)]; ff4: I =COUNT(J10:Jtn+9l)]; P15:
microcomputers and compatibles. [=MAX(J10:J[n+9])I; P16: [=MIN(J10:J[n+9J)]; Ff7:
I =STDV(J10:J[n+9J)]; P18: [=$M$5/SQRT($J$5)]; F19:
Conclusion [=($J$6—$M$6)/2]; P20: [=$J$4+$F$10*$Mx+$F$11$Nxl; f21:
I =$G$7+$G$8’SIN($G$6”Ix+$R$6)J; F22: [=($Jx—Kx)’($Jx--Kx)] —
The Excel® spreadsheet program for the cosinor analy P23: [=($Jx_Qx)*($Jx_Qx)l; f24: [=2PI0/NJ; F25: t=$D$6l; F26:
sis described in this paper provides a simple method to [=2$O$4]; F27: t=2$P$41; F28: I ‘SQRT($F$10’$f$10+$F$1 1”$F$l 1)];
physiologists who wish to establish the presence of a F29: [=(ATAN($f$31/$F$lO) + $C$10*PI0/2)/$D$6]; F30:
[‘ (ATAN($C$1 I /$G$10) +$C$10’Pl0/2)/$G$6]; F31:
rhythm in physiological data or to compare rhythms cal j=$C$1 I SQRT($D$7/$J$5)]; F32: I =SQRT($C$12*$F$13*4/$J$5)]; f33:
culated from different variables (9). It requires minimal I =ASIN($P$8/$D$8)/$D$6I; f34: I —$G$8’SIN($R$6)l; F35:
mathematical and computer programming skills, and it [=$G$8C0S($RS6)J; f36: I=$L$4’SJ$5I; f37: [=$R$4$J$5J; F38:
can deal with either equally time-spaced data or variable [=F$12/($JS5—3)l —‘ F39: lG$12/($J$5—3)]; F40:
[=$J$5($D58$D58)/(4$F$13)l;
intervals between measures with missing data points.
The conventional cosinor technique is used in the former The sign ‘—“ between two formulas means that the second formula
case, the solver method in the latter. Copies of this pro can be obtained by copying (copy/paste function of the spreadsheet)
gram on Macintosh discs are available on request from the formula in the first cell to the second cell.
the prime author. In this example, the cell to be defined by the solver is G12 (RSS) and
the cells to be changed are G7 (M), CS (A) and R6 (th).
APPENDIX A. EXCELa FORMULAE.
ACKNOWLEDGMENTS
Fl: [=COS($D$6$Ix)]; f2: [=SU’sJ($D$6$tx)I; F3: [=Mx$Jx]; Pt: The authors are indebted to Prof. Pascal Bogui and Dr. Alain Mont
t=Nx$Jxl; F5: t=AVERAGE(J10:JIn+9I)l —, P6: mayeur for their assistance in data collection.
790 Aviation, Space, and Environmental Medicine Vol. 66, No. 8 • August 1995
PROGRAM FOR ANALYSIS OF RHYTHMS—BOURDON ET AL.
REFERENCES 6. Kibby MR. Spreadsheet statistics. CABIOS 1986; 2:151—7.
1. Brown EN, Czeisler CA. The statistical analysis of circadian phase 7. Monk TH, Fort A. “Cosina”: a cosine curve fitting program suitable
and amplitude in constant-routine core-temperature data. 1 Biol for small computer. mt j Chronobiol 1983; 8:193—224.
Rhythms 1992; 7:177—202. 8. Nelson W, Tong YL, Lee JK, Halberg F. Methods for cosinor
2. DOrrscheidt GJ, Beck L. Advanced methods for evaluating charac rhythmometry. Chronobiologia 1979; 6:305—23.
teristics parameters (r, a, p) of circadian rhythms. J Math Biol 9. Smolender J, Harma M, Lindquist A, Kolari P, Laitinen LA.
1975; 2:107—21. Circadian variation in peripheral blood flow in relation to
3. Faure A, Nemoz C, Claustrat B. A graphical and statistical tech core temperature at rest. Eur J App! Physiol 1993; 67:
nique for investigation of time series in chronobiology according 192—6.
to cosinor procedure. Comput Biol Med 1990; 20:319—29, 10. Sundqvist C, Enkvist K. The use of LOTUS 1-2-3 in statistics. Com
4. Fuentes-Arderiu X, Rivera-Coll A. Impact of circadian rhythms on put Biol Med 1987; 17:395—9.
the interpretation of stat measurements. Clin Chim Acta 1993; 11. Zulley J, Wever R, Aschoff J. The dependence of onset and duration
214:113—8. of sleep on the circadian rhythm of rectal temperature. Pfluegers
5. Halberg F. Chronobiology. Ann Rev Physiol 1969; 31:675—725. Arch 1981; 391 :314—6.
Aviation, Space, and Environmental Medicine Vol. 66, No. 8 August 1995 791