Proc IML: how to delete a row in a matrix depending on values in the first column?

  • Follow


Hi,

I have seen a lot of examples for deleting or removing within proc
IML, but I doesn't work for my specific case.
Say there is a m x n matrix named "temp". I want to remove (in a loop)
a row i of the matrix when the cell temp[i,1] complies to some
statement. For example:

do i=1 to m;
    if temp[i,1]<0 then (?)
end;

At the place of the (?) I want to remove row temp[i,].
Anyone?


0
Reply Church 3/23/2010 8:29:35 AM


0 Replies
918 Views

(page loaded in 0.008 seconds)

Similiar Articles:












7/22/2012 4:37:37 AM


Reply: