Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 2/28/13 5:53 PM, "Pablo Menese" <pmenese at gmail.com> wrote:
I'm performing item response theory with eRm packages
I am excluding the persons that doesn't fit in the infit/outfit persons.
for that I created a condition. then I have to create a new subset or
matrix but with the condition.
So:
ORIGINAL
matrix<-cbind(item1, item2, item3, item4)
IF I PERFORM A head(matrix)
item1 item2 item3 item4
3 2 3 1
3 1 2 4
THEN I CREATE THE LOGIC CONDITION
z<-thing==T
THEN I TRY TO CREATE THE NEW MATRIX BUT WITH THE CONDITION
matrix2<-cbind(item1[z==T], item2[z==T], item3[z==T], item4[z==T])
THE ISSUE IS THAT IF I PERFORM A head(matrix2)
I1 I2 I3 I4
3 2 3 1
3 1 2 4
The names of the columns change at all.
CAN ANYONE HELP ME TO KEEP THE SAME NAMES?
[[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.