analyzing assymetric data sets

4 visualizzazioni (ultimi 30 giorni)
antonet
antonet il 4 Giu 2012
Dear all,
I have some data on prices for a specific good across time and across countries. The first problem is that the start and end date for each country is different. For example
Austria Belgium
"2/11/08" "07/12/08"
"30/11/08" "04/01/09"
"28/12/08" "01/02/09"
"25/01/09" "01/03/09
"22/02/09" "29/03/09"
The second problem is that the time span for each country is different. For example the data for France are available for 39 periods of 4 weeks(or 28 days) The data for Belgium are available for 36 periods of 4 weeks.
The third problem is that I have jumps which means that in some cases the next date is not always every after 4 weeks. Put differently, the distance that separates apart two successive dates in not always 28 days but in some cases it is 29 , 27 or 34.
Is there anything I can do (any function perhaps?) to solve these 3 problems. If I do not solve these problems I will not be able to use the data set for analysis. Please be as specific as you can
Thanks
  10 Commenti
Oleg Komarov
Oleg Komarov il 5 Giu 2012
interp1() will interpolate for all dates based on the existing datapoints that you will provide, i.e. it will NOT interpolate the first date and THEN interpolate the others from the previously interpolated value.
Check the graph in the documentation: http://www.mathworks.co.uk/help/matlab/ref/interp1.html
antonet
antonet il 6 Giu 2012
thank you oleg

Accedi per commentare.

Risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by