Optimise Sinus Fit for Fixed Period

optimise_sinus_fixedPeriod(df, period_length = 365.25)

Arguments

df

data frame with temperature data and columns "date" (YYYY-MM-DD) and "value"

period_length

period length (default: 365.25)

Value

list with fit parameters ("paras"), goodness-of-fit values ("gof"), special points, i.e. min/max/turning-points ("points), fit model ("lm_model") and input data ("data")

References

https://stats.stackexchange.com/questions/77543/how-do-i-get-the-amplitude-and-phase-for-sine-wave-from-lm-summary