Hello Statalisters,
I am facing an issue with the mkmat command, where zeros in the original variables are being converted to missing values in the matrix. I need assistance in addressing this problem.
Here's what I've done:
But the value remains missing. However, if I set it to another number like 3:
matrix Mat[1, 2] = 3
It updates correctly to 3.
The presence of these missing values prevents me from inverting the matrix and proceeding with my computations.
Would anyone have insights or suggestions on how to address this? Thank you in advance for your help!
I am facing an issue with the mkmat command, where zeros in the original variables are being converted to missing values in the matrix. I need assistance in addressing this problem.
Here's what I've done:
- I generated a matrix using:
- On examining the matrix, I noticed that some values which are zero in var1 and var2 become missing in Mat.
- I tried addressing the missing value by setting it to zero:
But the value remains missing. However, if I set it to another number like 3:
matrix Mat[1, 2] = 3
It updates correctly to 3.
The presence of these missing values prevents me from inverting the matrix and proceeding with my computations.
Would anyone have insights or suggestions on how to address this? Thank you in advance for your help!
Comment