ID<-rep(1:6,each=3)
DV<-rep(1:6,each=3)
DV2<-rep(2:7,each=3)
DV3<-rep(3:8,each=3)
time<-rep(1:3,times=6)
df<-data.frame(ID,DV,DV2,DV3,time)
Can somebody please tell me how to do I calculate the mean DV ((DV1+DV2+DV3)/3) for each time point. The mean would represent the mean DV for that TIME point from all the ID's & DV's (DV,DV2,DV3) and also obtain 95 and 5 percentile ranges for the same.