Hello
I have tried to figure out how to drop a set of observations if they meet two criteria (one of each observation). It is not a problem if I only have one condition, but I only want to drop a set of observations==0 if another observation==1. Any good advise, I can't seem to find any answers online either?
Kind regards Rasmus
Related Posts with Drop observation1==0 if Observation2==1
Difference in Consecutive Values by Group LabelsDear Statalisters, I need to generate another variable called 'difference' which contains the differ…
outreg2 keep option does not workHello, I am in desperate need for some help for my thesis regarding Stata. I would like to make us…
IV ordered probit using CMP (syntax help)Hi There, I am estimating the causal effect of maternal education on child health. My dependent var…
sort row with string variables?Dear All, Is it possible to sort "string" variable? Suppose that the data set is Code: * Example ge…
How to generate a variable which takes for every combination another value?Dear all I have a question. I have a dataset with lots of different variables and want to generate a…
Subscribe to:
Post Comments (Atom)
0 Response to Drop observation1==0 if Observation2==1
Post a Comment