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
replacing missing data with mean or medianHi guys, i have a set of data (n=586) with 2 variables. in some of the variables i have 2 to 3% miss…
Help with datesDear Alll I have a data set. The Variable 'date1' is supposed to be age in years but reported thei…
deflate data using 1980 valueDear All, I found this question here (http://bbs.pinggu.org/forum.php?mod=...a=#pid55243106). The da…
sample size calculationHello everyone, A friend of mine is asking me to calculate for her the sample size for an experiment…
Data set matchingI have 2 data sets with 75% similar names and 25% unique names. Values don't repeat within the data …
Subscribe to:
Post Comments (Atom)
0 Response to Drop the values of a variable with if condition
Post a Comment