Dear all, I have a simple question regarding how to compose a formula for
using with lmer.
Say I have 10 subjects with different phenotypes (dependent var Y) and one
predictor variable measured 3 times for each subject (X). By other words:

Y Subj X
1  1  1.2
1  1  1.3
1  1  0.7
3  2  2.1
3  2  2.5
3  2  4
5  3  3
5  3  4
5  3  4
...

I would like know the correlation of Y with X (Y~X) and the effect of
within subject variance on this correlation (say correlation corrected
adjusted with variance).
How to compose a formula for lmer function? Is it correct: Y~X|subj or may
be Y~x+1|subj? Thank you.

	[[alternative HTML version deleted]]

