Dear statalist,
I have a matrix "X" of zeroes of dimensions (r by k).
I have a second matrix "C" of dimensions (n by 2), where each row denotes a position in "X" where I want to replace a zero for a 1.
For example, the first three rows in "C" are:
1 3
4 24
6 39
I want to replace into ones the zeroes in positions [1,3], [4,2] and [6,39] in "X" .
I am using Stata version 13.1.
Thank you very much
Jose Uribe
I have a matrix "X" of zeroes of dimensions (r by k).
I have a second matrix "C" of dimensions (n by 2), where each row denotes a position in "X" where I want to replace a zero for a 1.
For example, the first three rows in "C" are:
1 3
4 24
6 39
I want to replace into ones the zeroes in positions [1,3], [4,2] and [6,39] in "X" .
I am using Stata version 13.1.
Thank you very much
Jose Uribe
Comment