Displaying 1 result from an estimated 1 matches for "pcinifm".
Did you mean:
pciif
2005 Dec 11
2
Problem with indexing (subscript out of bounds)
Hi,
I am trying to index the rows of a model matrix where, due to missing
values in the dataset used for the regression, the row numbers sometimes
"jump" like this:
> X[17:19,]
(Intercept) PCINIFM
17 1 36.76471
19 1 13.23529
20 1 32.35294
So, the problem is if I select for example X[20, ], I actually get the
21th observation. I've tried to work around this problem by using
X[as.character(20) , ]. Thus I actually get what I want. However, I need
to access se...