I would like to measure the correlation between two quantitative variables. These variables measure the same thing but are obtained with two different devices. My problem is that a same subject can have several measures (at different times).

I wonder if there is a way to calculate a correlation coefficient taking account of a possible "subject effect".

I hope that I was clear enough...

Thanks in advance