Hi,
Suppose I have the following dataset
id year measure1 measure2
1 2000 0.41 -
1 2001 0.19 0.50
1 2002 0.51 0.75
1 2003 0.91 0.29
2 2000 0.69 -
2 2001 0.40 0.69
2 2002 0.69 0.29 2
2003 0.79 0.39
How would I do a correlation between consecutive years (grouped by id)? e.g. Correlation between measure1 in 2001 with measure1 in 2000, measure1 in 2002 with measure1 in 2001, etc.
Thank you,
Related Posts with Correlations between consecutive observations
Advice on interpretation of prtest (two sample test of proportion)Hello everybody, As a student assignment, we are conducting research on how different interventions…
Panal Data copying missing characteristic dataHey guys, I'm using unbalenced panal data and want to copy missing values for "date of birth". In t…
Stochastic Frontier Analysis LoopDear Statalist members, I would like to run a SFA loop to get efficiency estimates for a worldwide …
First differencing and fixed effects?Dear all, I am working with a cross-section cross-time panel dataset with N = 15 (country) and T = …
Panel Data Hausman test Hello, I am working with 10years and 46 countries data. All is fine until I tried the Hausman test.…
Subscribe to:
Post Comments (Atom)
0 Response to Correlations between consecutive observations
Post a Comment