Dear All, consider the following code:
When run in Stata 16.0 for Windows it results in the following messages:
This is confusing, since the number of observations before -svmat- is run is already 2, not 0 as stated in the message. In fact the message appears always, regardless what is the number of observations, whether zero, smaller than roswof(A), or equal, or bigger.
This is preventable if other variables exist in the dataset when -svmat- is called, but not for a completely empty dataset.
If this is a known issue or already fixed, please disregard. Otherwise, I believe there should be no change to the _N observations set by the user before svmat is called even if it is excessive. Correspondingly, if the message is issued, it should refer to the correct _N (set by the user), not zero.
Thank you, Sergiy Radyakin
Code:
clear all matrix A=1,2,3\4,5,6 set obs 2 svmat A
Code:
. clear all
.
. matrix A=1,2,3\4,5,6
. set obs 2
number of observations (_N) was 0, now 2
.
. svmat A
number of observations will be reset to 2
Press any key to continue, or Break to abort
number of observations (_N) was 0, now 2
This is confusing, since the number of observations before -svmat- is run is already 2, not 0 as stated in the message. In fact the message appears always, regardless what is the number of observations, whether zero, smaller than roswof(A), or equal, or bigger.
This is preventable if other variables exist in the dataset when -svmat- is called, but not for a completely empty dataset.
If this is a known issue or already fixed, please disregard. Otherwise, I believe there should be no change to the _N observations set by the user before svmat is called even if it is excessive. Correspondingly, if the message is issued, it should refer to the correct _N (set by the user), not zero.
Thank you, Sergiy Radyakin
Comment