I'm dealing with a problem which I had never thought about, so I am little uncomfortable choosing a solution by myself. I have data for cerebral arteries peak speed for a week after stroke. The problem is, whether blood speed at cerebral arteries at the same side of the stroke are higher than the speed at the arteries in the opposite side. I would like to make trajectories of these speeds for both homo and counter-lateral arteries of the stroke.
Looking at the data in the long format, there is something like this:
ID Stroke Day Speed Artery Side
32000000 L 1 37 R Counter
32000000 L 1 50 L Homo
32000000 L 2 46 R Counter
32000000 L 2 55 L Homo
32000000 L 3 55 R Counter
32000000 L 3 60 L Homo
At first, for each patient there are two measurements of speed, which is unususal for me. I am concerned because I figure there is an interdependence of the the speed within each patient, and there is a correlation of the speed over time. What would be a reasonable way to model these trajectories? If anyone is familiar with R, please give some package or function for me to look at.