Hello everyone,
I have a variable named "diversity" (and a bunch of other variables) and I would like to drop the values of the variable "diversity" if the value of diversify is less than 0 (without dropping the values of other variables).
I tried the below command but I get "invalid syntax" error.
command:
drop diversity if diversity<0
Could someone please advise on how to perform this?
Thanks,
Ama
Related Posts with Drop the values of a variable with if condition
A series of problem(a) Run the regression with all years (c) Test if the coefficients on on-base percentage and sluggin…
sensitivity analysisHello everyone, I do not know how to do sensitivity test or analysis in stata could any one explain …
Independent component Analysis (ICA)Dear all, i'd like t work on financial data and using arbitrage pricing model by the ICA algorithm. …
Finding the minimum of difference between all observations by groupHi, everybody, I am trying to calculate the minimum of differences between all observations by grou…
taboutI am trying to use tabout in a do file, tabout tgrade q18 if female==0 using t1, sum and I get inval…
Subscribe to:
Post Comments (Atom)
0 Response to Drop the values of a variable with if condition
Post a Comment