Plotting a single fit for multiple years by averaging the fit co-efficients of individual years.

1 visualización (últimos 30 días)
I have fitted the curves for individual years and plotted it on a single plot. Now i need to fit all these individual years fit with a single fit for the whole plot.
Any tips please ? I don't have much hands on experience with matlab
  1 comentario
dpb
dpb el 4 de Ag. de 2020
It undoubtedly is not going to work to average coefficients -- fit all the data globally to get accurate statistics of the fit or average the data across observations if and fit if only the average coefficients are needed and not prediction statistics, goodness of fit, etc., etc., etc., ...

Iniciar sesión para comentar.

Respuestas (1)

Cris LaPierre
Cris LaPierre el 4 de Ag. de 2020
How is your data organized? I would probably get the day-of-year for all dates, plot the data against that, and then fit a curve to that. You can get the day-of-year with the following code:
day(dateVar,'dayofyear')

Categorías

Más información sobre Fit Postprocessing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by