search for: measurea

Displaying 1 result from an estimated 1 matches for "measurea".

Did you mean: measure
2005 May 15
1
Not sure if this is "aggregate" or some other task.
...Not I'd like to do an analysis where I have two scores... the first being the mean of the first two taken the same day, and the second being the one taken later. I have a lot of other variables in the row, and I'd like to do the same thing to all of them. Soo.... Data.Frame: Subj Obs MeasureA MeasureB 1 1 45 685 1 2 50 690 1 3 48 693 2 1 39 595 2 2 41 585 2 3 45 343 should become: Subj Obs MeasureA MeasureB 1 1 47.5 687.5 1 2 50 690 2 1 40 590 2 2 41 585 It seems like a job for "aggregate", but I want to collapse on only cases where observation # < 3, and take the mean...