How to calculate regression coeeficients fro spatial data

3 visualizaciones (últimos 30 días)
Carlotta Dentico
Carlotta Dentico el 19 de Sept. de 2023
Comentada: William Rose el 20 de Sept. de 2023
Hello,
I have a £D matrix called SLP that represents sea lvel pressure values over the fram strait having the following dimensions 241x81x240 where 240 is time; and a vector representing potential temperature (TEMP) with dimension 1x240.
I wuold like to calculate the regression coefficients between the matrix and the vector to create a figure like this.
Thank you very much for your help :)
  5 comentarios
Carlotta Dentico
Carlotta Dentico el 20 de Sept. de 2023
Yes, as I wrote I found the solution for the correlation, but I'm still working on the regression coefficient.
William Rose
William Rose el 20 de Sept. de 2023
I see that you have received excellent help from @dpb and @MarKf in response to your closely-related posting. As a courtesy to them, I recommend that you accept one of their answers.
You said above:
  • I wuold like to calculate the regression coefficients which are shown by the isoline in the attached figure.
  • I want to compute the regression coefficients between the SLP in the Fram Strait (bigger area) and the mean temperature along a transect.
What does "the regression coefficients which are shown by the isoline" mean? An isoline does not show regression coefficients. I assume the isolines above are isobars, at one moment in time, because you said you have pressure at 81x241 locations, and at 240 times. Please clarify.
When you say "I want to compute the regression coefficients between the SLP in the Fram Strait (bigger area) and the mean temperature along a transect.", is this a different set of regression coefficients than the ones "shown by the isoline"? Or is this statement another reference to the same regression coefficients? Do you have SLP along a transect, and temp along the same transect? If so, then you have two vectors of equal length, and the regression coefficient between them is easily computed.
You said "mean temperature along a transect". Your original post said the Temp vector is 1x240, and you have 240 time points. Therefore I assume you have a single temperature at each time, not temperature at each point along a transect. Do I assume correctly?
If you want to find a multiple regresion between pressures across space and time, and temperature at each time, then explain how you want to parition spatial pressure data at each time point.
As I requested previously: provide data please. You provided two data files at your other post. Each has dimensions 241x81. Neither of them have the dimensions you referred to in this posting: 241x81x240 and 1x240.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Linear and Nonlinear Regression en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by