Statistical programming, matrix languages, and more

How do I delete zero's or missing value in a matrix in proc iml

Accepted Solution Solved
Reply
Super Contributor
Posts: 303
Accepted Solution

How do I delete zero's or missing value in a matrix in proc iml

How do I delete the zeros in the matrix; THis matrix is in proc iml

The matrix name in InverseC.

0
0
1.1447811
0
0
0
0
0
0
0
0
0
0
0
0
4.3174603
0
0
0
0

Accepted Solutions
Solution
‎02-02-2013 05:13 PM
SAS Super FREQ
Posts: 3,637

Re: How do I delete zero's or missing value in a matrix in proc iml

You can use the REMOVE function or use LOC and indexing. See Remove or keep: Which is faster? - The DO Loop for examples and comparison.

View solution in original post


All Replies
Solution
‎02-02-2013 05:13 PM
SAS Super FREQ
Posts: 3,637

Re: How do I delete zero's or missing value in a matrix in proc iml

You can use the REMOVE function or use LOC and indexing. See Remove or keep: Which is faster? - The DO Loop for examples and comparison.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 276 views
  • 0 likes
  • 2 in conversation