Displaying 1 result from an estimated 1 matches for "cloest".
Did you mean:
closest
2009 Dec 20
2
how to create three new variables? Thanks a lot!
Dear R experts:
I have following data structure: student id, exam time and score. I want to
create three new columes: 1 st before, 2nd before and 3rd before.
For example, for student 1's 4th exam score is assumed to be influenced by
his previous three cloest scores, which are 6, 9, and 10 in that order.
For student 2's 5th exam score is assumed to be inflenced by her previous
cloest three scores, which are 10, 10 and 8 in that order.
Note that for student 1, his first time score "10" can not be influenced by
other scores, thus has three...