Displaying 1 result from an estimated 1 matches for "first1itemno".
2010 Oct 28
2
Determining a basal correct count
...comprehension. The columns are their scores (1 = correct, 0 = incorrect, . = missing) on 140 test items. The items are numbered sequentially and are ordered by increasing difficulty as you go from left to right across the columns.
I used the following (thanks to Peter Ehlers for this solution):
First1ItemNo <- as.vector(
apply(
LCvars1, 1, match, x=1
))
to make R go through the columns from left to right and record into a vector the column number of the first '1' response for each case.
Now, for each case (row), I want R to START with the column that contains the first '1' r...