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