Hi again,

If I hava time series data with say for instance 1500 numeric observations reflecting price development for 1500 days on Bitcoin, variable called bitc.

Lets say I want to look at the correlation coefficient for only day 50 - 88, day 250 - 350, day 750 - 900 and so on. Meaning I do not want the correlation coefficient for the whole period as a whole, only for sub-periods.

Will I have to create new variables for the respective periods? Or may I code a command so I ask for correlation coefficient for the preferred periods?

Or which way is the easiest for a newbie. How may I code this?

Thank you in advance.

/Tor Magne