Dear, All,
just wanted to confirm with you whether there exists a built-in function in Mata to calculate the equivalent of python's count_nonzero(), which reports the number (count) of the elements of a matrix that are different from zero.
No problem implementing this with nested loops. Just looking for a built-in function if available.
Thank you, Sergiy
Related Posts with Equivalent of count_nonzero()
Panel DataHello all, I want to do panel data analysis with stata. after i run this code: xtreg y(dependent var…
Creating categories of string variables from a continuous variableHello Stata users, I have a panel data set from survey data in long format that has to be kept conf…
Creating a loop to generate summary dataDear StataList I am new to programming in Stata. I want to write a programme to count the frequency…
Coding my continous variable to natural logarithmDear All, I am working on research to identify the influential factors of growth ambitions. I have …
abnormal stock returnsHi! I'm new to using stata and this website and i am trying to compute abnormal stock returns based …
Subscribe to:
Post Comments (Atom)
0 Response to Equivalent of count_nonzero()
Post a Comment