Hello,
I am using Stata 15.1 MP. After I run the display command on varlist, I expect r(k) to contain the number of vars in varlist. Instead it seems to contain the number of variables in the entire dataset (I'm guessing).
I was expecting r(k) to be 5. Am I wrong? What other function can I use to get the number of variables in a varlist that may be abbreviated as above.
Thanks.
'Alim
I am using Stata 15.1 MP. After I run the display command on varlist, I expect r(k) to contain the number of vars in varlist. Instead it seems to contain the number of variables in the entire dataset (I'm guessing).
Code:
. describe bene* , si bene1 bene2 bene3 bene4 bene5 . display r(k) 330
Thanks.
'Alim
Comment