My data is in the following format:
clear all input year ID var1 var2 2000 1 100 . 2001 1 200 0.2 2002 1 300 0.3 2000 2 500 . 2001 2