A simple sine curve could be written as $\text{amplitude}\cdot\sin(x+\text{phase})$. It can be also written in linear form as $a \cdot \sin(x) + b \cdot \cos(x)$.
I run my analysis with R as:
fit.lm2 <- lm(temperature~sin(2*pi*Time/366) + cos(2*pi*Time/366))
summary(fit.lm2)
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 26.9188 0.1005 267.87 < 2e-16
sin(2 * pi * Time/366) 1.7468 0.1390 12.56 < 2e-16
cos(2 * pi * Time/366) 1.2077 0.1485 8.13 6.94e-11
The general form of the equation is $y = b_0 + b_1x_1 + b_2x_2$, thus, in my case, it can be written as $y = 26.9188x_0 + 1.7468x_1 + 1.2077x_2$.
If I were to write it back to the simple sine form, $\text{amplitude}\cdot\sin(x+\text{phase})$, is it correct to say that:
$\text{amplitude} = b_0 = 26.9188$
$\text{phase} = \arctan\left(\frac{b_1}{b_2}\right)$
Is this the correct way how to do it?
