Hello everyone,
I have a big doubt about this counting issue:
Array
Let's suppose we have to count the number of observations which have value==1 and also cod1 != cod2.
Do you know any way to do so?
Thank you so much in advance,
Related Posts with How to count a variable based on an if condition
two stage IV approchbootstrap "repeated time values within panel" 2 SRI I'm trying to run 2sri approach(control functio…
working out expressions(sum and multiply) in stata with some missing observationsHi Nick Cox I want to add and multiply certain variables in stata in a new variable VaR. My expres…
Generating a new variable that equals the Nth non-missing value in a rowHi All, I am essentially trying to compress a row of variables into just the non-missing entries. M…
Looping Over the numeric value of a variable and use it for the subsequent loop.Hi, thanks for your help in advance. I have the following dataset. And I come up with the following …
Can I test country level data and firm level data in one regressionHello everyone, I'm trying to find the effects of culture on the existence of teamwork. My dataset …
Subscribe to:
Post Comments (Atom)
0 Response to How to count a variable based on an if condition
Post a Comment