I have a sequential dataset, and have 2000 rows for 300 ID. I have 20 variables (i.e in my real dataset)
ID<-c(1,1,1,2,2,2,2,3,3,4,4,4) time<-c(0,12,36,